aboutsummaryrefslogtreecommitdiffstats
path: root/testing/age/APKBUILD
blob: be8a477300bbdea972387450fc78b51fec4516c9 (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
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=age
pkgver=1.0.0_rc2
_realver=${pkgver/_rc/-rc.}
pkgrel=1
pkgdesc="Simple, modern and secure encryption tool"
url="https://github.com/FiloSottile/age"
license="BSD-3-Clause"
arch="all"
options="net chmod-clean"
makedepends="go"
subpackages="$pkgname-doc"
source="https://github.com/FiloSottile/age/archive/v$_realver/age-$_realver.tar.gz"
builddir="$srcdir/$pkgname-$_realver"

export GOPATH="$srcdir"

build() {
	mkdir bin
	go build -o bin filippo.io/age/cmd/...
}

check() {
	go test ./...
}

package() {
	install -Dm755 -t "$pkgdir"/usr/bin bin/*

	install -Dm644 -t "$pkgdir"/usr/share/doc/$pkgname doc/*.1

}

sha512sums="
488255ccf268a45f304d3fdcacbf32e214835516900b61e0554fe586bf61161e3bba2b1ee88e732490cdf82118a922c372133c888753d51f4d7afcb80421c088  age-1.0.0-rc.2.tar.gz
"