Files
omarchy-pkgs/pkgbuilds/elephant/PKGBUILD
T
2025-11-10 12:13:49 -05:00

28 lines
729 B
Bash

# Maintainer: Andrej Benz <hello[at]benz[dot]dev>
pkgname=elephant
pkgver=2.15.0
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=('e1a7cd44ed943475129dcd21160056d1fd4dc33dd968e6ff462cc88fa424d2bd')
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}"
}