[arch-commits] Commit in age/repos (community-x86_64 community-x86_64/PKGBUILD)

Christian Rebischke shibumi at archlinux.org
Sun Apr 4 23:10:50 UTC 2021


    Date: Sunday, April 4, 2021 @ 23:10:50
  Author: shibumi
Revision: 911811

archrelease: copy trunk to community-x86_64

Added:
  age/repos/community-x86_64/
  age/repos/community-x86_64/PKGBUILD
    (from rev 911810, age/trunk/PKGBUILD)

----------+
 PKGBUILD |   38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

Copied: age/repos/community-x86_64/PKGBUILD (from rev 911810, age/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2021-04-04 23:10:50 UTC (rev 911811)
@@ -0,0 +1,38 @@
+# Maintainer: Christian Rebischke <chris.rebischke at archlinux.org>
+# Contributor: Tharre <tharre3 at gmail.com>
+# Contributor: Caleb Maclennan <caleb at alerque.com>
+
+pkgname=age
+_pkgver=1.0.0-rc.1
+pkgver=${_pkgver//-/}
+pkgrel=2
+pkgdesc='A simple, modern and secure file encryption tool'
+arch=('x86_64')
+url="https://github.com/FiloSottile/$pkgname"
+license=('BSD')
+depends=('glibc')
+makedepends=('go')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$_pkgver.tar.gz")
+sha512sums=('7efcd2f84fba3d6da8cda0b8229fedab692db8731de94d0b4c60bfaee68f91bb9bed3c78d894916dafceb414a90773d9258457b39ec4d373a80b6e08e06fc87f')
+
+build() {
+    cd "$pkgname-$_pkgver"
+    go build \
+      -trimpath \
+      -buildmode=pie \
+      -mod=readonly \
+      -modcacherw \
+      -ldflags "-linkmode external -extldflags \"$LDFLAGS\"" \
+      -o . ./...
+}
+
+check() {
+    cd "$pkgname-$_pkgver"
+    go test ./...
+}
+
+package() {
+    cd "$pkgname-$_pkgver"
+    install -Dm755 -t "$pkgdir/usr/bin/" age age-keygen
+    install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
+}



More information about the arch-commits mailing list