mirror of
https://github.com/wneessen/apg-go.git
synced 2024-11-22 22:00:49 +01:00
Added PKGBUILD file for Arch Linux
This commit is contained in:
parent
54424298c6
commit
dd1a6b2b62
1 changed files with 36 additions and 0 deletions
36
buildfiles/arch-linux/PKGBUILD
Normal file
36
buildfiles/arch-linux/PKGBUILD
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
# Maintainer: "Winni Neessen (https://pebcak.de)
|
||||||
|
|
||||||
|
pkgname=apg.go
|
||||||
|
pkgver=0.2.7
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc='Advanced Password Generator Clone'
|
||||||
|
arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64')
|
||||||
|
url='https://github.com/wneessen/apg.go'
|
||||||
|
license=('MIT')
|
||||||
|
makedepends=('go' 'git')
|
||||||
|
source=("https://github.com/wneessen/${pkgname}/archive/refs/tags/v${pkgver}.tar.gz")
|
||||||
|
sha256sums=('9bf9df1214b266f02a715854fb2ddf2fc454d788604bf31f1b62d16d4457e2eb')
|
||||||
|
|
||||||
|
prepare() {
|
||||||
|
cd "${pkgname}-${pkgver}"
|
||||||
|
mkdir -p build/
|
||||||
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd "${pkgname}-${pkgver}"
|
||||||
|
export CGO_CPPFLAGS="${CPPFLAGS}"
|
||||||
|
export CGO_CFLAGS="${CFLAGS}"
|
||||||
|
export CGO_CXXFLAGS="${CXXFLAGS}"
|
||||||
|
_LDFLAGS="-extldflags ${LDFLAGS}"
|
||||||
|
go build -o build -ldflags="${_LDFLAGS}" "."
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
# binary
|
||||||
|
install -D -m755 "${srcdir}/${pkgname}-${pkgver}/build/apg.go" \
|
||||||
|
"${pkgdir}/usr/bin/apg"
|
||||||
|
|
||||||
|
# license
|
||||||
|
install -Dm644 "${srcdir}/${pkgname}-${pkgver}/LICENSE" \
|
||||||
|
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
||||||
|
}
|
Loading…
Reference in a new issue