apg-go/buildfiles/arch-linux/PKGBUILD

33 lines
890 B
Text
Raw Normal View History

2021-03-26 21:50:25 +01:00
# Maintainer: "Winni Neessen (https://pebcak.de)
2021-03-30 22:54:11 +02:00
pkgname=apg-go
pkgver=0.4.0
pkgrel=2
2021-04-01 10:53:51 +02:00
pkgdesc='A "Automated Password Generator"-clone'
2021-03-26 21:50:25 +01:00
arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64')
2021-03-30 22:54:11 +02:00
url='https://github.com/wneessen/apg-go'
2021-03-26 21:50:25 +01:00
license=('MIT')
2021-04-17 11:34:20 +02:00
makedepends=('go')
2021-03-26 21:50:25 +01:00
source=("https://github.com/wneessen/${pkgname}/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('21704158cbf9ae34d821169ff755a8381fd6b6b0d52d243fbb4a893c84bf6f4c')
2021-03-26 21:50:25 +01:00
prepare() {
cd "${pkgname}-${pkgver}"
mkdir -p build/
}
build() {
cd "${pkgname}-${pkgver}"
go build -ldflags="-s -w" -o build/${pkgname} github.com/wneessen/apg-go/cmd/apg
2021-03-26 21:50:25 +01:00
}
package() {
# binary
2021-03-30 22:54:11 +02:00
install -D -m755 "${srcdir}/${pkgname}-${pkgver}/build/${pkgname}" \
2021-03-26 21:50:25 +01:00
"${pkgdir}/usr/bin/apg"
# license
install -Dm644 "${srcdir}/${pkgname}-${pkgver}/LICENSE" \
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
2021-04-17 11:34:20 +02:00
}