aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2019-12-28 18:41:03 +0100
committerSören Tempel <soeren+git@soeren-tempel.net>2019-12-31 13:00:46 +0100
commit3c5f50cb0acf298c0cd308fc5e4450555fee0ac0 (patch)
tree51b59f3fa5204ced5bce31444368ca2ee4d1ce74
parent499c5edd8fb885a408677da5ce298addd908d7d2 (diff)
downloadaports-3c5f50cb0acf298c0cd308fc5e4450555fee0ac0.tar.gz
aports-3c5f50cb0acf298c0cd308fc5e4450555fee0ac0.tar.bz2
aports-3c5f50cb0acf298c0cd308fc5e4450555fee0ac0.tar.xz
testing/age: new aport
-rw-r--r--testing/age/APKBUILD44
1 files changed, 44 insertions, 0 deletions
diff --git a/testing/age/APKBUILD b/testing/age/APKBUILD
new file mode 100644
index 0000000000..0779b2e88c
--- /dev/null
+++ b/testing/age/APKBUILD
@@ -0,0 +1,44 @@
+# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
+# Maintainer:
+pkgname=age
+pkgver=1.0.0_p2
+_realver=${pkgver/_p/-beta}
+pkgrel=0
+pkgdesc="Simple, modern and secure encryption tool"
+url="https://github.com/FiloSottile/age"
+arch="all"
+license="BSD-3-Clause"
+makedepends="go"
+options="net"
+source="https://github.com/FiloSottile/age/archive/v$_realver/age-$_realver.tar.gz"
+builddir="$srcdir/filippo.io/age"
+
+export GOPATH="$srcdir"
+
+prepare() {
+ default_prepare
+ cd "$srcdir"
+ mkdir -p "$(dirname "$builddir")"
+ cp -r "$srcdir/$pkgname-$_realver" "$builddir"
+}
+
+build() {
+ mkdir -p bin
+ go build -o bin filippo.io/age/cmd/...
+}
+
+check() {
+ go test ./...
+}
+
+package() {
+ mkdir -p "$pkgdir"/usr/bin
+ install -m755 bin/* "$pkgdir"/usr/bin/
+}
+
+cleanup_srcdir() {
+ go clean -modcache
+ default_cleanup_srcdir
+}
+
+sha512sums="461a5b98924081420dbc43fdc2ed870fa8f51249fb6a34287963bc3b96f31308b1f729228d7019a3d5640f24374227c52a2dcfd4f87e19b5a5ad5968dfbc78c7 age-1.0.0-beta2.tar.gz"