aboutsummaryrefslogtreecommitdiffstats
path: root/community/apk-file/APKBUILD
blob: 846633960e3ce43e0ebb289fc65563f6ae86feb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Contributor: Daniele Debernardi <drebrez@gmail.com>
# Maintainer: Daniele Debernardi <drebrez@gmail.com>
pkgname=apk-file
pkgver=0.3.6
pkgrel=1
pkgdesc="Command line front end for pkgs.alpinelinux.org"
options="chmod-clean"
url="https://github.com/genuinetools/apk-file"
arch="all"
license="MIT"
makedepends="go bash"
source="$pkgname-$pkgver.tar.gz::https://github.com/genuinetools/apk-file/archive/v$pkgver.tar.gz"

build() {
	export GOPATH="$srcdir/go"
	make
}

check() {
	export GOPATH="$srcdir/go"
	make test
}

package() {
	install -Dm755 "$builddir/apk-file" \
		"$pkgdir/usr/bin/apk-file"
}

sha512sums="8da3f693ce85e1ab8a9cefb8b5baf83e096770703e5ccda89ec05161e8b4db54a973e54540e5f1737ce6d22cc5cdca10ab22553182de0c1c3cf824fe34d43318  apk-file-0.3.6.tar.gz"