cryptsetup: use subpackages= instead of case esac to guard a function.

fixes consistency check and keeps all functions defined
This commit is contained in:
maxice8 2018-09-14 12:50:02 -03:00 committed by Enno Boland
parent 30361ff582
commit 15ff60a888
1 changed files with 9 additions and 6 deletions

View File

@ -15,6 +15,7 @@ homepage="https://gitlab.com/cryptsetup/cryptsetup"
changelog="https://gitlab.com/cryptsetup/cryptsetup/raw/master/docs/v${version}-ReleaseNotes"
distfiles="${KERNEL_SITE}/utils/cryptsetup/v${version%.*}/${pkgname}-${version}.tar.xz"
checksum=9d3a3c7033293e0c97f0ad0501fd5b4d4913ae497cbf70cca06633ccc54b5734
subpackages="libcryptsetup cryptsetup-devel"
build_options="pwquality"
desc_option_pwquality="Enable support for checking password quality via libpwquality"
@ -22,15 +23,17 @@ desc_option_pwquality="Enable support for checking password quality via libpwqua
case $XBPS_TARGET_MACHINE in
*-musl)
configure_args+=" --enable-static-cryptsetup"
cryptsetup-static_package() {
short_desc+=" - static cryptsetup"
pkg_install() {
vmove "usr/bin/*.static"
}
}
subpackages+=" cryptsetup-static"
;;
esac
cryptsetup-static_package() {
short_desc+=" - static cryptsetup"
pkg_install() {
vmove "usr/bin/*.static"
}
}
libcryptsetup_package() {
short_desc+=" - runtime libraries"
pkg_install() {