# Maintainer: Andrej Benz pkgname=elephant-clipboard pkgver=2.18.0 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=('4fb0f74af2334d449a160a8a7a366309a8a2aab1ac967ea78a03fbf4c9653e04') build() { cd elephant-${pkgver}/internal/providers/clipboard go build -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}" }