aboutsummaryrefslogtreecommitdiffstats
path: root/testing/go-acceptlanguageparser/APKBUILD
blob: 35285dbc169e84ba79265447dce3bfbe58e04a8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=go-acceptlanguageparser
_pkgname=goacceptlanguageparser
_vendor="strukturag"
pkgver=100
pkgrel=2
pkgdesc="Go library for parsing HTTP request header Accept-Language"
url="https://github.com/$_vendor/$_pkgname"
arch="noarch"
license="BSD-3-Clause"
depends="go"
subpackages="$pkgname-doc"
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() {
	return 0
}

package() {
	cd "$builddir"
	mkdir -p "$pkgdir"/usr/share/doc/$_vendor/$pkgname \
		"$pkgdir"/usr/lib/go/src/github.com/$_vendor/$_pkgname
	for file in \
		LICENSE \
		README.md \
		COPYRIGHT \
		AUTHORS \
		; do \
		test -e $file && mv $file "$pkgdir"/usr/share/doc/$_vendor/$pkgname
	done
	mv *.go "$pkgdir"/usr/lib/go/src/github.com/$_vendor/$_pkgname
}

md5sums="7b7785425617958fc5b4142654ad6625  go-acceptlanguageparser-100.tar.gz"
sha256sums="99721755289eb7929cb0c95b53f9dd365761a72ffa60577c33db3842f107eddf  go-acceptlanguageparser-100.tar.gz"
sha512sums="319bccac8bd61677b9e1437e54053b70feb4bdc1ce289ca9c68594fe0731b3efc3fbc77a9bfd2dbedc9a0a52d01bdd269981eb7d49a515ff0a6dc27c2811923d  go-acceptlanguageparser-100.tar.gz"