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

28 lines
729 B
Bash

# Maintainer: Andrej Benz <hello[at]benz[dot]dev>
pkgname=elephant
pkgver=2.17.1
pkgrel=1
pkgdesc='general purpose datasource and executor'
url='https://github.com/abenz1267/elephant'
arch=('x86_64' 'aarch64')
license=('GPL')
makedepends=('go')
conflicts=('elephant')
provides=('elephant')
source=("${url}/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('aab6ee10f01c6c34d0f1b45cabcb722a56c15f169f9a85102a6dfe1e41e29e15')
build() {
cd ${pkgname}-${pkgver}/cmd/elephant
go build -buildvcs=false -x -o elephant -trimpath
}
package() {
cd ${pkgname}-${pkgver}/cmd/elephant
install -Dm 755 elephant -t "${pkgdir}/usr/bin"
cd ../../
install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}