29 lines
854 B
Bash
29 lines
854 B
Bash
# Maintainer: Andrej Benz <hello[at]benz[dot]dev>
|
|
|
|
pkgname=elephant-clipboard
|
|
pkgver=2.19.1
|
|
pkgrel=1
|
|
pkgdesc='clipboard provider for elephant'
|
|
url='https://github.com/abenz1267/elephant'
|
|
arch=('x86_64' 'aarch64')
|
|
license=('GPL')
|
|
depends=('wl-clipboard' 'imagemagick')
|
|
makedepends=('go')
|
|
conflicts=('elephant-clipboard')
|
|
provides=('elephant-clipboard')
|
|
source=("${url}/archive/refs/tags/v${pkgver}.tar.gz")
|
|
sha256sums=('0d3aaac36c8a4a596c7c699dd32bcf45e47141f3497610a8ba655ffbcaf36e51')
|
|
|
|
build() {
|
|
cd elephant-${pkgver}/internal/providers/clipboard
|
|
go build -ldflags="-s -w" -buildvcs=false -buildmode=plugin -trimpath
|
|
}
|
|
|
|
package() {
|
|
cd elephant-${pkgver}/internal/providers/clipboard
|
|
install -Dm 755 clipboard.so -t "${pkgdir}/usr/lib/elephant"
|
|
|
|
cd ../../../
|
|
install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
|
|
}
|