aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2018-01-12 08:48:06 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2018-01-12 08:48:06 +0000
commit36ed2142f0a2b4ba3588b9961da40c7446c394ca (patch)
treea432baea83fc9a51ad8f4caf42d87a01e6d7051a /testing
parenta83fcab3d12f270e6067f986d89c7b2b5410773c (diff)
downloadaports-36ed2142f0a2b4ba3588b9961da40c7446c394ca.tar.bz2
aports-36ed2142f0a2b4ba3588b9961da40c7446c394ca.tar.xz
testing/go-acceptlanguageparser: modernize APKBUILD, update license, disable check()
Take maintainership
Diffstat (limited to 'testing')
-rw-r--r--testing/go-acceptlanguageparser/APKBUILD31
1 files changed, 11 insertions, 20 deletions
diff --git a/testing/go-acceptlanguageparser/APKBUILD b/testing/go-acceptlanguageparser/APKBUILD
index 92b95b11ff..e5ba2e0f9f 100644
--- a/testing/go-acceptlanguageparser/APKBUILD
+++ b/testing/go-acceptlanguageparser/APKBUILD
@@ -1,35 +1,26 @@
-# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
-# Maintainer:
+# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=go-acceptlanguageparser
-_realname=goacceptlanguageparser
+_pkgname=goacceptlanguageparser
_vendor="strukturag"
pkgver=100
-pkgrel=0
+pkgrel=1
pkgdesc="Go library for parsing HTTP request header Accept-Language"
-url="https://github.com/$_vendor/$_realname"
+url="https://github.com/$_vendor/$_pkgname"
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/${_realname}_v$pkgver.tar.gz"
-builddir="$srcdir"/${_realname}-${_realname}_v$pkgver
-
-
-prepare() {
- cd "$builddir"
-}
+options="!check" # no testsuite
+source="$pkgname-$pkgver.tar.gz::https://github.com/$_vendor/$_pkgname/archive/${_pkgname}_v$pkgver.tar.gz"
+builddir="$srcdir"/${_pkgname}-${_pkgname}_v$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 \
@@ -38,7 +29,7 @@ package() {
; 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 *.go "$pkgdir"/usr/lib/go/src/github.com/$_vendor/$_pkgname
}
md5sums="7b7785425617958fc5b4142654ad6625 go-acceptlanguageparser-100.tar.gz"