blob: 92b95b11fff49b274e785c361fafa13109ce56ae (
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
39
40
41
42
43
44
45
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"
|