APKBUILD 989 Bytes
Newer Older
1 2 3
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=aports-ghpr
pkgver=0.1
4
pkgrel=1
5 6 7 8
pkgdesc="Search aport in github pull requests"
url="http://git.alpinelinux.org/cgit/user/ncopa/aports-ghpr"
arch="all"
license="ISC"
9 10 11 12
makedepends="go dep"
source="http://dev.alpinelinux.org/archive/aports-ghpr/aports-ghpr-$pkgver.tar.xz
	add-toml-file.patch"
builddir="$srcdir/src/github.com/aports-ghpr/$pkgname"
13 14
options="!check"

15 16 17 18 19
prepare() {
	mkdir -p ${builddir%/*}
	mv "$srcdir/$pkgname-$pkgver" "$builddir/"
	default_prepare
}
20 21 22
build() {
	cd "$builddir"
	export GOPATH="$srcdir"
23
	dep ensure -v
24 25 26 27 28 29 30 31
	make
}

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

32 33
sha512sums="3351b2b18e88c064b63061c107e92a8d7c8c42bf0e265278b960af1ab3f848c584ced291b4f8e9845ad654d058345fc730751e161038dee0cea421cd117e2814  aports-ghpr-0.1.tar.xz
ce320bee6eb10f5b80a7dba7124d17437ac6b21a53bff29a7fd2022399312543322a5102a61f2c63b8fadc12c52ed517bf1289a0f97cdd18435db56bdfd75695  add-toml-file.patch"