aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2018-01-12 14:50:32 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2018-01-12 15:13:53 +0000
commiteba58546f01d6f12ccc2b0920948128316dc3bca (patch)
tree5da61b45c7d7dee2452244f2ebf37945018de8d2
parentc133eb59eb48aa241a95fcc2ce2b14305dd3d7bb (diff)
downloadaports-eba58546f01d6f12ccc2b0920948128316dc3bca.tar.bz2
testing/go-conf: enable build() and check()
-rw-r--r--testing/go-conf/APKBUILD14
1 files changed, 9 insertions, 5 deletions
diff --git a/testing/go-conf/APKBUILD b/testing/go-conf/APKBUILD
index 827b8c1..ec8f318 100644
--- a/testing/go-conf/APKBUILD
+++ b/testing/go-conf/APKBUILD
@@ -3,20 +3,26 @@ pkgname=go-conf
_pkgname=goconf
_vendor=dlintw
pkgver=0_git20170102
-pkgrel=1
+pkgrel=2
pkgdesc="goconf package - fork from http://code.google.com/p/goconf/"
url="https://github.com/$_vendor/$_pkgname"
arch="noarch"
license="BSD-3-Clause"
+depends="go"
subpackages="$pkgname-doc"
-options="!check"
source="http://dev.alpinelinux.org/archive/$_pkgname/$_pkgname-$pkgver.tar.gz"
giturl="https://github.com/dlintw/$_pkgname.git"
disturl="larena@dev.alpinelinux.org:/archive/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver
build() {
- return 0
+ cd "$builddir"
+ export GOPATH="$srcdir" make all
+}
+
+check() {
+ cd "$builddir"
+ export GOPATH="$srcdir" make test
}
package() {
@@ -34,6 +40,4 @@ package() {
mv *.go "$pkgdir"/usr/lib/go/src/vendor/github.com/$_vendor/$_pkgname
}
-md5sums="9209a3e0b10675898c3228348e6caa3d goconf-0_git20170102.tar.gz"
-sha256sums="d9b9b38114b6abc8aa02f8ebe2203ba46a0b263df89c23f0614b580391c73779 goconf-0_git20170102.tar.gz"
sha512sums="b497d81356b8dc93b6421cadfd4e396399ff7eea183fec1509f925d46b3d19367294c2515589d3f1ee3dd20169980615a8bec030a9a7479274b9add2446c0e59 goconf-0_git20170102.tar.gz"