diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2018-01-12 08:35:04 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2018-01-12 08:35:16 +0000 |
commit | a83fcab3d12f270e6067f986d89c7b2b5410773c (patch) | |
tree | e4c3aa5de2a71c5ad3a25bdc3c9bb97e7c83ed2d /testing/go-context/APKBUILD | |
parent | 3f2b6a8541d4537fa2213abf1b20638d5d8c47b7 (diff) | |
download | aports-a83fcab3d12f270e6067f986d89c7b2b5410773c.tar.bz2 aports-a83fcab3d12f270e6067f986d89c7b2b5410773c.tar.xz |
testing/go-context: modernize APKBUILD, update license, disable check()
Take maintainership
Diffstat (limited to 'testing/go-context/APKBUILD')
-rw-r--r-- | testing/go-context/APKBUILD | 32 |
1 files changed, 11 insertions, 21 deletions
diff --git a/testing/go-context/APKBUILD b/testing/go-context/APKBUILD index cc6c6595c3..cac51a3592 100644 --- a/testing/go-context/APKBUILD +++ b/testing/go-context/APKBUILD @@ -1,34 +1,27 @@ -# Contributor: Leonardo Arena <rnalrd@alpinelinux.org> -# Maintainer: +# Contributor: +# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org> pkgname=go-context -_realname=context +_pkgname=context _vendor=gorilla pkgver=1.1 -pkgrel=0 +pkgrel=1 pkgdesc="A golang registry for global request variables" url="http://www.gorillatoolkit.org" arch="noarch" -license="Custom" -depends= -depends_dev= -makedepends="$depends_dev" -install= +license="BSD-3-Clause" subpackages="$pkgname-doc" -source="$pkgname-$pkgver.tar.gz::https://github.com/$_vendor/$_realname/archive/v$pkgver.tar.gz" -builddir="$srcdir"/$_realname-$pkgver - -prepare() { - cd "$builddir" -} +options="!check" # no testsuite +source="$pkgname-$pkgver.tar.gz::https://github.com/$_vendor/$_pkgname/archive/v$pkgver.tar.gz" +builddir="$srcdir"/$_pkgname-$pkgver build() { - cd "$builddir" + return 0 } package() { cd "$builddir" mkdir -p "$pkgdir"/usr/share/doc/$_vendor/$pkgname \ - "$pkgdir"/usr/lib/go/src/vendor/github.com/$_vendor/$_realname + "$pkgdir"/usr/lib/go/src/vendor/github.com/$_vendor/$_pkgname for file in \ LICENSE \ README.md \ @@ -37,10 +30,7 @@ package() { ; do \ test -e $file && mv $file "$pkgdir"/usr/share/doc/$_vendor/$pkgname done - ls - mv * "$pkgdir"/usr/lib/go/src/vendor/github.com/$_vendor/$_realname || return 1 + mv * "$pkgdir"/usr/lib/go/src/vendor/github.com/$_vendor/$_pkgname } -md5sums="990183c4f2d317c0bee3c6a54d7d9704 go-context-1.1.tar.gz" -sha256sums="12a849b4e9a08619233d4490a281aa2d34a69f9eaf85c2295f5357927e4d1763 go-context-1.1.tar.gz" sha512sums="a4864abec77e82c63f075c18517b4c486e6196b80f234f667d3d7d29bbd67967f0c0df80a398c0aa9c7a6d4e57326b3c3045f541a258d02c02d6ced5f0bc2327 go-context-1.1.tar.gz" |