diff options
-rw-r--r-- | .SRCINFO | 8 | ||||
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | PKGBUILD | 28 |
3 files changed, 21 insertions, 16 deletions
@@ -1,15 +1,15 @@ pkgbase = ksd pkgdesc = kubernetes secret decoder - pkgver = 1.0.5 + pkgver = 1.0.7 pkgrel = 1 url = https://github.com/mfuentesg/ksd arch = x86_64 arch = i686 + arch = aarch64 license = MIT makedepends = go depends = glibc - source = ksd-1.0.5.tar.gz::https://github.com/mfuentesg/ksd/archive/v1.0.5.tar.gz - sha256sums = f6ad0468ce2ab6b79e709aa584fa7905ea0beba985484ed154c49036a869f81e + source = https://github.com/mfuentesg/ksd/archive/v1.0.7/ksd-1.0.7.tar.gz + sha256sums = 4cff240a64807c454b6b5b4bf08bee69fb6d5a6117fa28fb7c4d0ef534f1855a pkgname = ksd - diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..72e8ffc0db8a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +* @@ -1,30 +1,34 @@ -# Maintainer: ml <ml@visu.li> +# Maintainer: ml <> pkgname=ksd -pkgver=1.0.5 +pkgver=1.0.7 pkgrel=1 pkgdesc='kubernetes secret decoder' -arch=('x86_64' 'i686') +arch=('x86_64' 'i686' 'aarch64') url='https://github.com/mfuentesg/ksd' license=('MIT') depends=('glibc') makedepends=('go') -source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz") -sha256sums=('f6ad0468ce2ab6b79e709aa584fa7905ea0beba985484ed154c49036a869f81e') +source=("$url/archive/v$pkgver/$pkgname-$pkgver.tar.gz") +sha256sums=('4cff240a64807c454b6b5b4bf08bee69fb6d5a6117fa28fb7c4d0ef534f1855a') build() { - cd "${pkgname}-${pkgver}" + cd "$pkgname-$pkgver" + export CGO_ENABLED=1 export CGO_LDFLAGS="$LDFLAGS" - export GOFLAGS='-buildmode=pie -modcacherw -trimpath' - go build -o "$pkgname" -ldflags "-X main.version=v${pkgver}" + export CGO_CFLAGS="$CFLAGS" + export CGO_CPPFLAGS="$CPPFLAGS" + export CGO_CXXFLAGS="$CXXFLAGS" + export GOFLAGS='-buildmode=pie -trimpath -modcacherw' + go build -o "$pkgname" -ldflags="-linkmode=external -X=main.version=v$pkgver" main.go } check() { - cd "${pkgname}-${pkgver}" + cd "$pkgname-$pkgver" go test } package() { - cd "${pkgname}-${pkgver}" - install -Dm755 -t "${pkgdir}/usr/bin" "$pkgname" - install -Dm755 -t "${pkgdir}/usr/share/licenses/${pkgname}" LICENSE + cd "$pkgname-$pkgver" + install -Dm755 -t "$pkgdir/usr/bin" "$pkgname" + install -Dm755 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE } |