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