python-texttable: update to 1.3.1
[void-packages.git] / srcpkgs / cryptsetup / template
blobbe398ffe18c7f1ced8916c9788b2341e42e9c735
1 # Template file for 'cryptsetup'
2 pkgname=cryptsetup
3 version=2.0.3
4 revision=1
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
23         *-musl)
24         configure_args+=" --enable-static-cryptsetup"
25         cryptsetup-static_package() {
26                 short_desc+=" - static cryptsetup"
27                 pkg_install() {
28                         vmove "usr/bin/*.static"
29                 }
30         }
31         ;;
32 esac
34 libcryptsetup_package() {
35         short_desc+=" - runtime libraries"
36         pkg_install() {
37                 vmove "usr/lib/*.so.*"
38         }
40 cryptsetup-devel_package() {
41         depends="libcryptsetup>=${version}_${revision}"
42         short_desc+=" - development files"
43         pkg_install() {
44                 vmove usr/include
45                 vmove usr/lib/pkgconfig
46                 vmove "usr/lib/*.so"
47                 case $XBPS_TARGET_MACHINE in
48                         *-musl)
49                                 vmove "usr/lib/*.a"
50                         ;;
51                 esac
52         }