diff options
author | Daniele Debernardi <drebrez@gmail.com> | 2019-10-01 23:19:02 +0200 |
---|---|---|
committer | Rasmus Thomsen <oss@cogitri.dev> | 2019-10-13 14:08:40 +0200 |
commit | fd4ff6f89c763b92e2d722565fc927c9e72933c6 (patch) | |
tree | df493db482136d9c326519c6d265b478b9c79ac3 /community | |
parent | 8573d2da9594df6a393c1035ff54ac64a19bd35d (diff) | |
download | aports-fd4ff6f89c763b92e2d722565fc927c9e72933c6.tar.bz2 aports-fd4ff6f89c763b92e2d722565fc927c9e72933c6.tar.xz |
community/apk-file: move from testing
Diffstat (limited to 'community')
-rw-r--r-- | community/apk-file/APKBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/community/apk-file/APKBUILD b/community/apk-file/APKBUILD new file mode 100644 index 0000000000..ac2b59c9ff --- /dev/null +++ b/community/apk-file/APKBUILD @@ -0,0 +1,39 @@ +# Contributor: Daniele Debernardi <drebrez@gmail.com> +# Maintainer: Daniele Debernardi <drebrez@gmail.com> +pkgname=apk-file +pkgver=0.3.5 +pkgrel=1 +pkgdesc="Command line front end for pkgs.alpinelinux.org" +url="https://github.com/genuinetools/apk-file" +arch="all" +license="MIT" +makedepends="go" +source="$pkgname-$pkgver.tar.gz::https://github.com/genuinetools/$pkgname/archive/v$pkgver.tar.gz" +builddir="$srcdir/go/src/github.com/genuinetools/$pkgname" + +# Fails with a permission denied error on some builders without this. +export GO111MODULE=off + +prepare() { + mkdir -p "$srcdir/go/src/github.com/genuinetools" + mv "$srcdir/$pkgname-$pkgver" "$builddir" +} + +build() { + export GOPATH="$srcdir/go" + cd "$builddir" + make +} + +check() { + export GOPATH="$srcdir/go" + cd "$builddir" + make test +} + +package() { + install -Dm755 "$builddir/apk-file" \ + "$pkgdir/usr/bin/apk-file" +} + +sha512sums="b007a57a243a7b135663fde76fbad5b97e06dd474a32bfbd5e8ffc6b4f77e76d055b96c65b7001631b70a55816858935dfd7dfbcf016984dd1dc0a6a75939e7f apk-file-0.3.5.tar.gz" |