aboutsummaryrefslogtreecommitdiffstats
path: root/testing/go-pkac/APKBUILD
blob: 51da2ab8726e7dd513e1b06242aad3d1bcdfff33 (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
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer:
pkgname=go-pkac
_realname=pkac
_vendor="longsleep"
pkgver=0.0.1
pkgrel=0
pkgdesc="SPKAC/PKAC HTML keygen element data decoding for Go"
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/$pkgver.tar.gz"
builddir="$srcdir"/$_realname-$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="a8741ff729d9ca437c3993e1241a5f3a  go-pkac-0.0.1.tar.gz"
sha256sums="bf811903e873cf8837ef9e3ea1fe291627d40067035cad1f1ecc159d1f102782  go-pkac-0.0.1.tar.gz"
sha512sums="e3b6e754f7666b08c9903225241f01f3f644942eca078f52a7989ba4b96b27ccfc620aef8c17e59c74cd234dd9b3fcf840ce0ef81a3aacfaf581153b0ecbd743  go-pkac-0.0.1.tar.gz"