diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-01-03 14:49:19 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-01-03 15:22:00 +0000 |
commit | bcbc9e5c00949cafdb497c6dc468434907ed34bc (patch) | |
tree | af3d18ea92dd6dbe261d4aa2f701fac469cab03a /testing | |
parent | 7b87047ca86e78e3b1d9dcf1ddc0e7ebd20a9cad (diff) | |
download | aports-bcbc9e5c00949cafdb497c6dc468434907ed34bc.tar.bz2 aports-bcbc9e5c00949cafdb497c6dc468434907ed34bc.tar.xz |
testing/go-acceptlanguageparser: new aport
Go library for parsing HTTP request header Accept-Language
Diffstat (limited to 'testing')
-rw-r--r-- | testing/go-acceptlanguageparser/APKBUILD | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/testing/go-acceptlanguageparser/APKBUILD b/testing/go-acceptlanguageparser/APKBUILD new file mode 100644 index 0000000000..92b95b11ff --- /dev/null +++ b/testing/go-acceptlanguageparser/APKBUILD @@ -0,0 +1,46 @@ +# Contributor: Leonardo Arena <rnalrd@alpinelinux.org> +# Maintainer: +pkgname=go-acceptlanguageparser +_realname=goacceptlanguageparser +_vendor="strukturag" +pkgver=100 +pkgrel=0 +pkgdesc="Go library for parsing HTTP request header Accept-Language" +url="https://github.com/$_vendor/$_realname" +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/${_realname}_v$pkgver.tar.gz" +builddir="$srcdir"/${_realname}-${_realname}_v$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="7b7785425617958fc5b4142654ad6625 go-acceptlanguageparser-100.tar.gz" +sha256sums="99721755289eb7929cb0c95b53f9dd365761a72ffa60577c33db3842f107eddf go-acceptlanguageparser-100.tar.gz" +sha512sums="319bccac8bd61677b9e1437e54053b70feb4bdc1ce289ca9c68594fe0731b3efc3fbc77a9bfd2dbedc9a0a52d01bdd269981eb7d49a515ff0a6dc27c2811923d go-acceptlanguageparser-100.tar.gz" |