# Contributor: Daniele Debernardi # Maintainer: Daniele Debernardi 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"