# Contributor: Sören Tempel # Maintainer: Natanael Copa pkgname=cryptsetup pkgver=2.3.1 pkgrel=1 pkgdesc="Userspace setup tool for transparent encryption of block devices using the Linux 2.6 cryptoapi" url="https://gitlab.com/cryptsetup/cryptsetup" arch="all" license="GPL-2.0-or-later" makedepends_host="lvm2-dev openssl-dev popt-dev util-linux-dev json-c-dev argon2-dev" makedepends="$makedepends_build $makedepends_host" checkdepends="device-mapper sharutils which bash" subpackages="$pkgname-dev $pkgname-doc $pkgname-libs $pkgname-openrc" source="https://www.kernel.org/pub/linux/utils/cryptsetup/v${pkgver%.*}/cryptsetup-$pkgver.tar.gz https://gitlab.com/cryptsetup/cryptsetup/-/commit/604abec333a0efb44fd8bc610aa0b1151dd0f612.patch https://gitlab.com/cryptsetup/cryptsetup/-/commit/e6a356974330e3ae21579a5737976e9a2aad1b51.patch flush-stdout.patch dmcrypt.confd dmcrypt.initd " build() { ./configure \ --build="$CBUILD" \ --host="$CHOST" \ --prefix=/usr \ --libdir=/lib \ --sbindir=/sbin \ --disable-static \ --enable-libargon2 \ --with-crypto_backend=openssl make } check() { make check } package() { make DESTDIR=$pkgdir install mkdir -p "$pkgdir"/usr/lib mv "$pkgdir"/lib/pkgconfig "$pkgdir"/usr/lib/ install -Dm644 "$srcdir"/dmcrypt.confd "$pkgdir"/etc/conf.d/dmcrypt install -Dm755 "$srcdir"/dmcrypt.initd "$pkgdir"/etc/init.d/dmcrypt mkdir -p "$pkgdir"/usr/share/doc/$pkgname/ install -m644 README TODO FAQ NEWS docs/v$pkgver-ReleaseNotes \ "$pkgdir"/usr/share/doc/$pkgname/ } libs() { pkgdesc="Cryptsetup shared library" mkdir -p "$subpkgdir" mv "$pkgdir"/lib "$subpkgdir"/ } sha512sums="33e5adc7699da34bc021f4e1472628f7b61fe3dff34ee135088a3ced390b09302731429198c9ab1d7c2df1ed90413c082d4d6e8ea78a799f26e61451e5aafc99 cryptsetup-2.3.1.tar.gz 3a3191b799be678bf8888fe446d28dc2d898d94ea84242cf02bb161be744ecaef1708f6a838b7f904c5865a8dafed057ed92ebc2ebfe337316f677530bb70f97 604abec333a0efb44fd8bc610aa0b1151dd0f612.patch c29603b2d5c716e1b52cfb52c03df05f1f69e50d44e4814e77a80f5128e834e6b4e8d4275a2a4d0463eb03baea106789337212f0217bb4def566d800e3f6a599 e6a356974330e3ae21579a5737976e9a2aad1b51.patch dc896fdb7697d01443a168819f01af02db00a9de75589f062a1ebbfc0bc185b6d2109b18352309c41b818e3ad89609dcea3660d6f3cda890de825f053f94de97 flush-stdout.patch 74422d5e1614b43af894ea01da1ea80d805ec7f77981cbb80a6b1a4becad737a8825d7269812499095a7f50d39fa7da5bf4e4edae63529b1fe87b9176943a733 dmcrypt.confd 81dad61cdecf1dc529b26eb3cdc15979a582c876b01268f88e7a71c8fae6911137c03bfa63fee64e064e5fb31f673610be27ecab9fc432229f13e7040698bd5c dmcrypt.initd"