PKGBUILDs/armv7/flucky/PKGBUILD

24 lines
781 B
Bash
Raw Normal View History

2019-12-10 20:58:15 +00:00
# Maintainer: Markus Pesch <markus.pesch@cryptic.systems>
pkgname=flucky
pkgver=v0.1.0
2019-12-12 20:14:21 +00:00
pkgrel=3
2019-12-10 20:58:15 +00:00
pkgdesc='A lightweight golang program to read values from different sensors'
2019-12-12 20:14:21 +00:00
arch=('armv7' 'armv7h' 'armv7l')
2019-12-10 20:58:15 +00:00
url=https://github.com/volker-raschek/flucky
license=('Apache 2.0')
makedepends=('git' 'go' 'make')
source=("git+https://github.com/volker-raschek/flucky#tag=${pkgver}")
sha256sums=('SKIP')
build() {
2019-12-10 21:20:08 +00:00
GOBIN=${HOME}/go/bin
PATH=$GOBIN:$PATH
go get -u github.com/go-bindata/go-bindata/...
make -C "${srcdir}/${pkgname}" bin/linux/arm/7/${pkgname} VERSION=${pkgver}
2019-12-10 20:58:15 +00:00
}
package() {
2019-12-10 21:20:08 +00:00
install -Dm4755 "${srcdir}/${pkgname}/bin/linux/arm/7/${pkgname}" "$pkgdir/usr/bin/flucky"
2019-12-10 20:58:15 +00:00
install -Dm644 "${srcdir}/${pkgname}/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}