aboutsummaryrefslogtreecommitdiffstats
path: root/file2key-libpassphrase/PKGBUILD
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-02-22 15:58:49 +0100
committerMattias Andrée <maandree@kth.se>2021-02-22 15:58:49 +0100
commit06f3bcaccc25e63c0bdb2f8209bba521b0cbbc8a (patch)
treecd5b382d569be4ec824d8e109f75d81389b6520c /file2key-libpassphrase/PKGBUILD
parentUpdate asroot (diff)
downloadaur-packages-06f3bcaccc25e63c0bdb2f8209bba521b0cbbc8a.tar.gz
aur-packages-06f3bcaccc25e63c0bdb2f8209bba521b0cbbc8a.tar.bz2
aur-packages-06f3bcaccc25e63c0bdb2f8209bba521b0cbbc8a.tar.xz
Update file2key
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'file2key-libpassphrase/PKGBUILD')
-rw-r--r--file2key-libpassphrase/PKGBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/file2key-libpassphrase/PKGBUILD b/file2key-libpassphrase/PKGBUILD
new file mode 100644
index 0000000..fe5a842
--- /dev/null
+++ b/file2key-libpassphrase/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@kth.se>
+
+pkgname=file2key-libpassphrase
+pkgver=3
+pkgrel=1
+pkgdesc="A simple command that generates a key from a file and a passphrase, libpassphrase version"
+arch=(i686 x86_64)
+url="https://github.com/maandree/file2key"
+license=('custom:ISC')
+conflicts=(file2key)
+provides=(file2key)
+depends=(glibc libkeccak libpassphrase)
+makedepends=(make coreutils gcc glibc libkeccak libpassphrase)
+source=(file2key-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz)
+sha256sums=(018b8b2b44a5781d15f464b85e8787492af816d79f3e7af2561901cd7644812b)
+
+prepare() {
+ cd "${srcdir}/file2key-${pkgver}"
+ sed '/CPPFLAGS/s/$/ -DWITH_LIBPASSPHRASE/' < config.mk > config.mk.tmp
+ sed '/LDFLAGS/s/$/ -lpassphrase/' < config.mk.tmp > config.mk
+}
+
+build() {
+ cd "$srcdir/file2key-$pkgver"
+ make PREFIX=/usr
+}
+
+package() {
+ cd "$srcdir/file2key-$pkgver"
+ make PREFIX=/usr install DESTDIR="$pkgdir"
+}