mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-02 02:52:46 +02:00
47 lines
1.3 KiB
Plaintext
47 lines
1.3 KiB
Plaintext
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
|
|
# Maintainer:
|
|
pkgname=go-httputils
|
|
_realname=httputils
|
|
_vendor="strukturag"
|
|
pkgver=012
|
|
pkgrel=0
|
|
pkgdesc="Go support library for HTTP servers"
|
|
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/strukturag/$_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/$_realname
|
|
done
|
|
mv * "$pkgdir"/usr/lib/go/src/github.com/$_vendor/$_realname || return 1
|
|
}
|
|
|
|
md5sums="7c1a1b13471098238e8714dc87a144fd go-httputils-012.tar.gz"
|
|
sha256sums="a2e39573d555ed035148ba83e6cde6d18a5a836ae6da535a85f11ff5e2eb0df0 go-httputils-012.tar.gz"
|
|
sha512sums="e508c121f6b226dcc8f7eea2104e3bf620ada5c8d66e5569cb3e6f33f95d7ce5cac97f4e1b34afb34fc13e280ec9e3ea846b408412ddf3badcfb70674a328d84 go-httputils-012.tar.gz"
|