1 # Template file for 'cryptsetup'
5 build_style=gnu-configure
6 configure_args="--with-crypto_backend=openssl $(vopt_enable pwquality)
7 --enable-cryptsetup-reencrypt"
8 hostmakedepends="pkg-config"
9 makedepends="device-mapper-devel json-c-devel libressl-devel popt-devel
10 $(vopt_if pwquality 'libpwquality-devel')"
11 short_desc="Setup virtual encryption devices under Linux dm-crypt"
12 maintainer="Juan RP <xtraeme@voidlinux.eu>"
13 license="GPL-2.0-or-later"
14 changelog="https://gitlab.com/cryptsetup/cryptsetup/raw/master/docs/v${version}-ReleaseNotes"
15 homepage="https://gitlab.com/cryptsetup/cryptsetup"
16 distfiles="${KERNEL_SITE}/utils/cryptsetup/v${version%.*}/${pkgname}-${version}.tar.xz"
17 checksum=4d6cca04c1f5ff4a68d045d190efb2623087eda0274ded92f92a4b6911e501d4
19 build_options="pwquality"
20 desc_option_pwquality="Enable support for checking password quality via libpwquality"
22 case $XBPS_TARGET_MACHINE in
24 configure_args+=" --enable-static-cryptsetup"
25 cryptsetup-static_package() {
26 short_desc+=" - static cryptsetup"
28 vmove "usr/bin/*.static"
34 libcryptsetup_package() {
35 short_desc+=" - runtime libraries"
37 vmove "usr/lib/*.so.*"
40 cryptsetup-devel_package() {
41 depends="libcryptsetup>=${version}_${revision}"
42 short_desc+=" - development files"
45 vmove usr/lib/pkgconfig
47 case $XBPS_TARGET_MACHINE in