aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Polański <michal@polanski.me>2020-06-28 20:02:05 +0200
committerLeo <thinkabit.ukim@gmail.com>2020-06-28 21:26:20 +0000
commitcabc0adb018c01832f29e3269289ce98f1d7b32a (patch)
treef9dec85899470fa3924aba88429fcfcaa3407312
parent94fb1b35f9cf3378ceefdfb30d4fc2c5a78a3c35 (diff)
downloadaports-cabc0adb018c01832f29e3269289ce98f1d7b32a.tar.gz
aports-cabc0adb018c01832f29e3269289ce98f1d7b32a.tar.bz2
aports-cabc0adb018c01832f29e3269289ce98f1d7b32a.tar.xz
testing/age: upgrade to 1.0.0_p4
- simplify packaging - adopt maintainership
-rw-r--r--testing/age/APKBUILD24
1 files changed, 9 insertions, 15 deletions
diff --git a/testing/age/APKBUILD b/testing/age/APKBUILD
index 8f530e06a3..bbfb16d64e 100644
--- a/testing/age/APKBUILD
+++ b/testing/age/APKBUILD
@@ -1,29 +1,24 @@
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
-# Maintainer:
+# Contributor: Michał Polański <michal@polanski.me>
+# Maintainer: Michał Polański <michal@polanski.me>
pkgname=age
-pkgver=1.0.0_p2
+pkgver=1.0.0_p4
_realver=${pkgver/_p/-beta}
-pkgrel=1
+pkgrel=0
pkgdesc="Simple, modern and secure encryption tool"
url="https://github.com/FiloSottile/age"
-arch="all"
+arch="all mips mips64" # limited by go
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"
+builddir="$srcdir/$pkgname-$_realver"
export GOPATH="$srcdir"
-prepare() {
- default_prepare
- cd "$srcdir"
- mkdir -p "$(dirname "$builddir")"
- cp -r "$srcdir/$pkgname-$_realver" "$builddir"
-}
build() {
- mkdir -p bin
+ mkdir bin
go build -o bin filippo.io/age/cmd/...
}
@@ -32,8 +27,7 @@ check() {
}
package() {
- mkdir -p "$pkgdir"/usr/bin
- install -m755 bin/* "$pkgdir"/usr/bin/
+ install -Dm755 bin/* -t "$pkgdir"/usr/bin
}
cleanup_srcdir() {
@@ -41,4 +35,4 @@ cleanup_srcdir() {
default_cleanup_srcdir
}
-sha512sums="461a5b98924081420dbc43fdc2ed870fa8f51249fb6a34287963bc3b96f31308b1f729228d7019a3d5640f24374227c52a2dcfd4f87e19b5a5ad5968dfbc78c7 age-1.0.0-beta2.tar.gz"
+sha512sums="5c323e21637cb92f4036152555c4f75a451667ed4ef65480d4fcc55a5660a1b68f55bdddccabc20f0bac3669ce544430c201bbeed5657f6330336051d1ff1f4c age-1.0.0-beta4.tar.gz"