1 # Maintainer: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
2 # Contributor: Thomas Bächler <thomas@archlinux.org>
7 pkgdesc='Userspace setup tool for transparent encryption of block devices using dm-crypt'
10 url='https://gitlab.com/cryptsetup/cryptsetup/'
11 depends=('device-mapper' 'libdevmapper.so' 'openssl' 'popt' 'util-linux-libs'
12 'libuuid.so' 'json-c' 'libjson-c.so' 'argon2' 'libargon2.so')
13 makedepends=('util-linux' 'asciidoctor')
14 provides=('libcryptsetup.so')
15 options=('debug' '!emptydirs')
16 validpgpkeys=('2A2918243FDE46648D0686F9D9B0577BD93E98FC') # Milan Broz <gmazyland@gmail.com>
17 source=("https://www.kernel.org/pub/linux/utils/cryptsetup/v${pkgver%.*}/${pkgname}-${pkgver}.tar."{xz,sign}
21 sha256sums=('9184a6ebbd9ce7eb211152e7f741a6c82f2d1cc0e24a84ec9c52939eee0f0542'
23 '29a3f1db5b86a8e6b7c914125e2c46711d6d5985bbf4089e158e06af551c8307'
24 '817686b47e5ffd32913bcae7efe717f3377a48062b6311549d4440cfd3eadf17'
25 '5d68a359fd85b5132456f96c2405916de5009efc8e7edf51aef6bf2d2ffd0bd5')
28 cd "${srcdir}"/$pkgname-${pkgver}
36 sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
41 cd "${srcdir}"/$pkgname-${pkgver}
43 make DESTDIR="${pkgdir}" install
46 install -D -m0644 -t "${pkgdir}"/usr/share/doc/cryptsetup/ FAQ.md docs/{Keyring,LUKS2-locking}.txt
49 install -D -m0644 "${srcdir}"/hooks-encrypt "${pkgdir}"/usr/lib/initcpio/hooks/encrypt
50 install -D -m0644 "${srcdir}"/install-encrypt "${pkgdir}"/usr/lib/initcpio/install/encrypt
51 install -D -m0644 "${srcdir}"/install-sd-encrypt "${pkgdir}"/usr/lib/initcpio/install/sd-encrypt