Files
omarchy-pkgs/pkgbuilds/elephant-desktopapplications/PKGBUILD
T
2025-12-08 18:15:25 -05:00

28 lines
878 B
Bash

# Maintainer: Andrej Benz <hello[at]benz[dot]dev>
pkgname=elephant-desktopapplications
pkgver=2.17.1
pkgrel=1
pkgdesc='desktopapplications provider for elephant'
url='https://github.com/abenz1267/elephant'
arch=('x86_64' 'aarch64')
license=('GPL')
makedepends=('go')
conflicts=('elephant-desktopapplications')
provides=('elephant-desktopapplications')
source=("${url}/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('aab6ee10f01c6c34d0f1b45cabcb722a56c15f169f9a85102a6dfe1e41e29e15')
build() {
cd elephant-${pkgver}/internal/providers/desktopapplications
go build -buildvcs=false -buildmode=plugin -trimpath
}
package() {
cd elephant-${pkgver}/internal/providers/desktopapplications
install -Dm 755 desktopapplications.so -t "${pkgdir}/etc/xdg/elephant/providers"
cd ../../../
install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}