diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2018-01-12 09:27:35 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2018-01-12 09:28:19 +0000 |
commit | 801786f5595783eec2db063c739bfd879728af3d (patch) | |
tree | 4cb6866d7750589c130e033cfb5b4e2953b55da5 | |
parent | ec0387e275a734407a7956fa3bb8308f2a06b7f2 (diff) | |
download | aports-801786f5595783eec2db063c739bfd879728af3d.tar.bz2 aports-801786f5595783eec2db063c739bfd879728af3d.tar.xz |
testing/go-securecookie: modernize APKBUILD, update license
Take maintainership
-rw-r--r-- | testing/go-securecookie/APKBUILD | 32 |
1 files changed, 11 insertions, 21 deletions
diff --git a/testing/go-securecookie/APKBUILD b/testing/go-securecookie/APKBUILD index 43c5de8982..ef9454ef6b 100644 --- a/testing/go-securecookie/APKBUILD +++ b/testing/go-securecookie/APKBUILD @@ -1,45 +1,35 @@ -# Contributor: Leonardo Arena <rnalrd@alpinelinux.org> -# Maintainer: +# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org> pkgname=go-securecookie -_realname=securecookie +_pkgname=securecookie _vendor=gorilla pkgver=1.1 -pkgrel=0 +pkgrel=1 pkgdesc="Encodes and decodes authenticated and optionally encrypted cookie values for Go" 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/github.com/$_vendor/$_realname + "$pkgdir"/usr/lib/go/src/github.com/$_vendor/$_pkgname for file in \ LICENSE \ - README.md \ + README.* \ COPYRIGHT \ AUTHORS \ ; do \ test -e $file && mv $file "$pkgdir"/usr/share/doc/$_vendor/$pkgname done - mv * "$pkgdir"/usr/lib/go/src/github.com/$_vendor/$_realname || return 1 + mv * "$pkgdir"/usr/lib/go/src/github.com/$_vendor/$_pkgname } -md5sums="3a27b6f3637b50aac6f09a4b0d588800 go-securecookie-1.1.tar.gz" -sha256sums="dd17329e5fc255b1ac9b9a0c40492cb499e24123e9dbb388c9e31ced368e85c7 go-securecookie-1.1.tar.gz" sha512sums="6473fdeb32f7a5182dc836e9588f3b7c2a29e1a244f36ac2077caad7a60dedeb5acf2da7766d270a5ef0ab1cef2c229e4b296cdf259569af1e9c99a382e31c2b go-securecookie-1.1.tar.gz" |