aboutsummaryrefslogtreecommitdiffstats
path: root/testing/aports-ghpr/APKBUILD
blob: 4e30824fec2964a6e4031a3a24a043c46b17715b (plain) (blame)
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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=aports-ghpr
pkgver=0.1
pkgrel=0
pkgdesc="Search aport in github pull requests"
url="http://git.alpinelinux.org/cgit/user/ncopa/aports-ghpr"
arch="all"
license="ISC"
makedepends="go glide"
source="http://dev.alpinelinux.org/archive/aports-ghpr/aports-ghpr-$pkgver.tar.xz"
builddir="$srcdir/aports-ghpr-$pkgver"
options="!check"

build() {
	cd "$builddir"
	export GOPATH="$srcdir"

	# I guess this is wrong way to get dependencies but i dont know how?
	go get -v github.com/google/go-github/github
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" prefix=/usr install
}

sha512sums="3351b2b18e88c064b63061c107e92a8d7c8c42bf0e265278b960af1ab3f848c584ced291b4f8e9845ad654d058345fc730751e161038dee0cea421cd117e2814  aports-ghpr-0.1.tar.xz"