apg-go/buildfiles/arch-linux/PKGBUILD

32 lines
861 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
2021-03-28 11:54:45 +02:00
pkgver=0.2.9
2021-03-26 21:50:25 +01:00
pkgrel=1
pkgdesc='Advanced Password Generator Clone'
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')
makedepends=('go' 'git')
source=("https://github.com/wneessen/${pkgname}/archive/refs/tags/v${pkgver}.tar.gz")
2021-03-30 22:54:11 +02:00
sha256sums=('de8b8d38e8d5b48d4b59fb01982f1fcc404cc499c7eef57fcdcc0295b8f05971')
2021-03-26 21:50:25 +01:00
prepare() {
cd "${pkgname}-${pkgver}"
mkdir -p build/
}
build() {
cd "${pkgname}-${pkgver}"
2021-03-30 22:54:11 +02:00
go build -ldflags="-s -w" -o build/${pkgname} ./...
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-03-30 22:54:11 +02:00
}