diff options
author | Eric Biggers | 2021-05-05 21:42:50 -0700 |
---|---|---|
committer | Eric Biggers | 2021-05-05 22:24:26 -0700 |
commit | 4aa12bc7595a40586dc539adf695c23e4783ef8d (patch) | |
tree | b7c52fb13e4911fbbbf08e2656ec6d1ab0b4eaef | |
parent | 85153aad983728f20d6f01c060445eb83b57d061 (diff) | |
download | aur-4aa12bc7595a40586dc539adf695c23e4783ef8d.tar.gz |
Update to follow latest Arch Linux Go packaging guidelines
Also make use of the new way to avoid installing the Ubuntu-specific PAM
config file.
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 12 |
2 files changed, 7 insertions, 9 deletions
@@ -1,11 +1,11 @@ pkgbase = fscrypt-git pkgdesc = A tool for managing Linux filesystem encryption - pkgver = 0.2.7.0.g2b160ae + pkgver = 0.3.0.4.g677ae75 pkgrel = 1 url = https://github.com/google/fscrypt arch = x86_64 license = Apache - makedepends = go-pie + makedepends = go makedepends = git depends = pam provides = fscrypt @@ -1,13 +1,13 @@ # Maintainer: Eric Biggers <ebiggers3 at gmail dot com> pkgname=fscrypt-git -pkgver=0.2.7.0.g2b160ae +pkgver=0.3.0.4.g677ae75 pkgrel=1 pkgdesc='A tool for managing Linux filesystem encryption' arch=('x86_64') url='https://github.com/google/fscrypt' license=('Apache') -makedepends=('go-pie' 'git') +makedepends=('go' 'git') depends=('pam') conflicts=('fscrypt') provides=('fscrypt') @@ -23,15 +23,13 @@ pkgver() { build() { cd fscrypt - make + make GO_FLAGS="-buildmode=pie -mod=readonly -modcacherw" \ + GO_LINK_FLAGS="-s -w -linkmode=external" } package() { cd fscrypt - make DESTDIR="$pkgdir" PREFIX=/usr install + make DESTDIR="$pkgdir" PREFIX=/usr PAM_CONFIG_DIR="" install install -Dm644 ../pam_config "${pkgdir}/etc/pam.d/fscrypt" install -Dm644 -t "$pkgdir/usr/share/doc/fscrypt/" README.md - - # Remove Ubuntu-specific PAM file - rm -rf "$pkgdir"/usr/share/pam-configs/ } |