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-04-17 11:34:20 +02:00
|
|
|
pkgver=0.3.1
|
2021-03-26 21:50:25 +01:00
|
|
|
pkgrel=1
|
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")
|
2021-04-17 11:34:20 +02:00
|
|
|
sha256sums=('1a798bd729c2985a11001118ad7d222e75c4f01e642184c37dec409a899a565b')
|
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-04-17 11:34:20 +02:00
|
|
|
}
|