diff options
-rw-r--r-- | testing/gosu/APKBUILD | 13 |
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 |