summaryrefslogtreecommitdiff
path: root/core/cryptsetup/MAKEPKG
diff options
context:
space:
mode:
Diffstat (limited to 'core/cryptsetup/MAKEPKG')
-rw-r--r--core/cryptsetup/MAKEPKG45
1 files changed, 45 insertions, 0 deletions
diff --git a/core/cryptsetup/MAKEPKG b/core/cryptsetup/MAKEPKG
new file mode 100644
index 0000000..f226fdf
--- /dev/null
+++ b/core/cryptsetup/MAKEPKG
@@ -0,0 +1,45 @@
+#!/bin/mkpkg
+# description: Userspace setup tool for Linux dm-crypt / LUKS
+# url: https://gitlab.com/cryptsetup/cryptsetup
+
+name=cryptsetup
+version=2.8.8
+release=1
+depends=(device-mapper popt json-c argon2 libressl util-linux)
+makedeps=(pkgconf)
+source=(https://www.kernel.org/pub/linux/utils/cryptsetup/v2.8/cryptsetup-$version.tar.xz)
+
+sha256sums=(
+ "3acfa685f2dd7fcc832e0b77bc7093aa7da554a51ce8dafbb4138eaa854eee35"
+)
+
+build() {
+ cd cryptsetup-$version
+ CC=clang \
+ ./configure \
+ --prefix=/ \
+ --sbindir=/sbin \
+ --mandir=/usr/share/man \
+ --with-crypto-backend=openssl \
+ --disable-internal-argon2 \
+ --enable-libargon2 \
+ --disable-ssh-token \
+ --disable-asciidoc \
+ --disable-nls \
+ --disable-udev \
+ --disable-selinux \
+ --with-default-luks-format=LUKS2
+
+ # remove tests from build — generate-symbols-list uses /dev/fd process substitution
+ sed -i 's/ tests//' Makefile
+
+ make
+ make DESTDIR=$PKG install
+}
+
+signify() {
+ untrusted comment: public key
+ RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
+}
+
+# vim: filetype=sh