mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-04-24 23:21:34 +02:00
45 lines
983 B
Plaintext
45 lines
983 B
Plaintext
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
|
|
# Maintainer:
|
|
pkgname=age
|
|
pkgver=1.0.0_p2
|
|
_realver=${pkgver/_p/-beta}
|
|
pkgrel=1
|
|
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"
|