aboutsummaryrefslogtreecommitdiffstats
path: root/testing/go-phoenix/APKBUILD
blob: 1d9e6d3c30e74fd0ab4bf5f5de80faeb28969664 (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
47
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer:
pkgname=go-phoenix
_realname=phoenix
_vendor="strukturag"
pkgver=1.0.2
_ver=${pkgver//./}
pkgrel=0
pkgdesc="Go library providing support functionality for application startup, configuration, logging, and profiling."
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$_ver.tar.gz"
builddir="$srcdir"/$_realname-${_realname}_v$_ver


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="edd9fa60d9e58c74445e502843e14397  go-phoenix-1.0.2.tar.gz"
sha256sums="33f4fbe37c478d5f023c1004e93eb1bf5bee56c4c41eba555ebc7442812318c8  go-phoenix-1.0.2.tar.gz"
sha512sums="7b673e57135098b99fcc54cbe6b72dbd84a0342e2f8371e3b815e0a7598c2e4d4dccbbe6a71d250b88f9ad9ce285a4e108886ff3d2a77acc7eba1cf19bd4f7a2  go-phoenix-1.0.2.tar.gz"