aboutsummaryrefslogtreecommitdiffstats
path: root/testing/gosu/APKBUILD
diff options
context:
space:
mode:
authorBartłomiej Piotrowski <b@bpiotrowski.pl>2016-07-09 10:11:01 +0200
committerBartłomiej Piotrowski <b@bpiotrowski.pl>2016-07-09 10:13:51 +0200
commit4e12f8931a71fd90d31449c744d1955b0da9e6ae (patch)
treeabb3a2731b0d49ef7c32e3d649e09b5f982dbac5 /testing/gosu/APKBUILD
parent260f2467c12c88b0afcd55afe8f79b685bde8beb (diff)
downloadaports-4e12f8931a71fd90d31449c744d1955b0da9e6ae.tar.bz2
aports-4e12f8931a71fd90d31449c744d1955b0da9e6ae.tar.xz
testing/gosu: use builddir and default_prepare
Diffstat (limited to 'testing/gosu/APKBUILD')
-rw-r--r--testing/gosu/APKBUILD13
1 files changed, 4 insertions, 9 deletions
diff --git a/testing/gosu/APKBUILD b/testing/gosu/APKBUILD
index 9b2431f2f9..d0c7fb6bec 100644
--- a/testing/gosu/APKBUILD
+++ b/testing/gosu/APKBUILD
@@ -24,28 +24,23 @@ subpackages=""
source="https://github.com/tianon/gosu/archive/$_gosu_ver/$_gosu_src.tar.gz
https://github.com/opencontainers/runc/archive/v$_runc_ver/$_runc_src.tar.gz"
-_builddir="$srcdir"/$_gosu_repo
+builddir="$srcdir"/$_gosu_repo
prepare() {
mkdir -p $_gosu_repo $_runc_repo
mv -T $_gosu_src $_gosu_repo || return 1
mv -T $_runc_src $_runc_repo || return 1
- local i
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
+ default_prepare
}
build() {
- cd "$_builddir"
+ cd "$builddir"
CGO_ENABLED=0 GOPATH="$startdir:$srcdir/$_runc_repo/Godeps/_workspace" \
go build -v -ldflags '-s -w' || return 1
}
package() {
- cd "$_builddir"
+ cd "$builddir"
local bindir="$pkgdir/usr/bin"
mkdir -p "$bindir" || return 1
cp gosu "$bindir" || return 1