summaryrefslogtreecommitdiff
path: root/cryptsetup/PKGBUILD
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-01-28 15:02:16 +0100
committerErich Eckner <git@eckner.net>2020-01-28 15:02:16 +0100
commit46c37333df88f38e38cf294ece0a21a4fe617d32 (patch)
tree21e2b232dae35809d60ccbefec79c7338ff68939 /cryptsetup/PKGBUILD
parent8d6b1f591c4fbeff15736ed815378574c30afc43 (diff)
downloadarchlinuxewe-46c37333df88f38e38cf294ece0a21a4fe617d32.tar.xz
cryptsetup new - beware, there is a patched option
Diffstat (limited to 'cryptsetup/PKGBUILD')
-rw-r--r--cryptsetup/PKGBUILD52
1 files changed, 52 insertions, 0 deletions
diff --git a/cryptsetup/PKGBUILD b/cryptsetup/PKGBUILD
new file mode 100644
index 000000000..7a01fd406
--- /dev/null
+++ b/cryptsetup/PKGBUILD
@@ -0,0 +1,52 @@
+# Maintainer: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
+# Contributor: Thomas Bächler <thomas@archlinux.org>
+
+pkgname=cryptsetup
+pkgver=2.2.2
+pkgrel=1
+pkgdesc='Userspace setup tool for transparent encryption of block devices using dm-crypt'
+arch=(x86_64)
+license=('GPL')
+url='https://gitlab.com/cryptsetup/cryptsetup/'
+depends=('device-mapper' 'openssl' 'popt' 'libutil-linux' 'json-c' 'argon2')
+makedepends=('util-linux')
+options=('!emptydirs')
+validpgpkeys=('2A2918243FDE46648D0686F9D9B0577BD93E98FC') # Milan Broz <gmazyland@gmail.com>
+source=("https://www.kernel.org/pub/linux/utils/cryptsetup/v${pkgver%.*}/${pkgname}-${pkgver}.tar."{xz,sign}
+ 'hooks-encrypt'
+ 'install-encrypt'
+ 'install-sd-encrypt'
+ 'test.patch')
+sha256sums=('2af0ec9551ab9c870074cae9d3f68d82cab004f4095fa89db0e4413713424a46'
+ 'SKIP'
+ '416aa179ce3c6a7a5eee0861f1f0a4fafac91b69e84a2aae82b6e5a6140e31e2'
+ 'd325dc239ecc9a5324407b0782da6df2573e8491251836d6c4e65fa61339ce57'
+ '31d816b3650a57512a5f9b52c1995fa65a161faa8b37975d07c9a1b8e1a119db'
+ 'SKIP')
+
+prepare() {
+ cd "${srcdir}"/$pkgname-${pkgver}
+ patch -p1 -i ../test.patch
+}
+
+build() {
+ cd "${srcdir}"/$pkgname-${pkgver}
+
+ ./configure \
+ --prefix=/usr \
+ --sbindir=/usr/bin \
+ --enable-libargon2 \
+ --disable-static
+ make
+}
+
+package() {
+ cd "${srcdir}"/$pkgname-${pkgver}
+
+ make DESTDIR="${pkgdir}" install
+
+ # install hook
+ install -D -m0644 "${srcdir}"/hooks-encrypt "${pkgdir}"/usr/lib/initcpio/hooks/encrypt
+ install -D -m0644 "${srcdir}"/install-encrypt "${pkgdir}"/usr/lib/initcpio/install/encrypt
+ install -D -m0644 "${srcdir}"/install-sd-encrypt "${pkgdir}"/usr/lib/initcpio/install/sd-encrypt
+}