diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-01-03 14:57:38 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-01-03 15:22:00 +0000 |
commit | 4a8a545efb5090b93f909e8dfa0e9007e4f5d31f (patch) | |
tree | 5c445e0c09d5715c71b28a369c81c2d10a6b749e /testing/go-securecookie | |
parent | b6190b85b4b8f7fd498f563c28ba968a98168183 (diff) | |
download | aports-4a8a545efb5090b93f909e8dfa0e9007e4f5d31f.tar.bz2 aports-4a8a545efb5090b93f909e8dfa0e9007e4f5d31f.tar.xz |
testing/go-securecookie: new aport
Encodes and decodes authenticated and optionally encrypted cookie values for Go
Diffstat (limited to 'testing/go-securecookie')
-rw-r--r-- | testing/go-securecookie/APKBUILD | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/testing/go-securecookie/APKBUILD b/testing/go-securecookie/APKBUILD new file mode 100644 index 0000000000..43c5de8982 --- /dev/null +++ b/testing/go-securecookie/APKBUILD @@ -0,0 +1,45 @@ +# Contributor: Leonardo Arena <rnalrd@alpinelinux.org> +# Maintainer: +pkgname=go-securecookie +_realname=securecookie +_vendor=gorilla +pkgver=1.1 +pkgrel=0 +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= +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" +} + +build() { + cd "$builddir" +} + +package() { + cd "$builddir" + mkdir -p "$pkgdir"/usr/share/doc/$_vendor/$pkgname \ + "$pkgdir"/usr/lib/go/src/github.com/$_vendor/$_realname + for file in \ + LICENSE \ + README.md \ + 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 +} + +md5sums="3a27b6f3637b50aac6f09a4b0d588800 go-securecookie-1.1.tar.gz" +sha256sums="dd17329e5fc255b1ac9b9a0c40492cb499e24123e9dbb388c9e31ced368e85c7 go-securecookie-1.1.tar.gz" +sha512sums="6473fdeb32f7a5182dc836e9588f3b7c2a29e1a244f36ac2077caad7a60dedeb5acf2da7766d270a5ef0ab1cef2c229e4b296cdf259569af1e9c99a382e31c2b go-securecookie-1.1.tar.gz" |