cryptsetup: use subpackages= instead of case esac to guard a function.
fixes consistency check and keeps all functions defined
This commit is contained in:
parent
30361ff582
commit
15ff60a888
|
@ -15,6 +15,7 @@ homepage="https://gitlab.com/cryptsetup/cryptsetup"
|
||||||
changelog="https://gitlab.com/cryptsetup/cryptsetup/raw/master/docs/v${version}-ReleaseNotes"
|
changelog="https://gitlab.com/cryptsetup/cryptsetup/raw/master/docs/v${version}-ReleaseNotes"
|
||||||
distfiles="${KERNEL_SITE}/utils/cryptsetup/v${version%.*}/${pkgname}-${version}.tar.xz"
|
distfiles="${KERNEL_SITE}/utils/cryptsetup/v${version%.*}/${pkgname}-${version}.tar.xz"
|
||||||
checksum=9d3a3c7033293e0c97f0ad0501fd5b4d4913ae497cbf70cca06633ccc54b5734
|
checksum=9d3a3c7033293e0c97f0ad0501fd5b4d4913ae497cbf70cca06633ccc54b5734
|
||||||
|
subpackages="libcryptsetup cryptsetup-devel"
|
||||||
|
|
||||||
build_options="pwquality"
|
build_options="pwquality"
|
||||||
desc_option_pwquality="Enable support for checking password quality via libpwquality"
|
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
|
case $XBPS_TARGET_MACHINE in
|
||||||
*-musl)
|
*-musl)
|
||||||
configure_args+=" --enable-static-cryptsetup"
|
configure_args+=" --enable-static-cryptsetup"
|
||||||
cryptsetup-static_package() {
|
subpackages+=" cryptsetup-static"
|
||||||
short_desc+=" - static cryptsetup"
|
|
||||||
pkg_install() {
|
|
||||||
vmove "usr/bin/*.static"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
cryptsetup-static_package() {
|
||||||
|
short_desc+=" - static cryptsetup"
|
||||||
|
pkg_install() {
|
||||||
|
vmove "usr/bin/*.static"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
libcryptsetup_package() {
|
libcryptsetup_package() {
|
||||||
short_desc+=" - runtime libraries"
|
short_desc+=" - runtime libraries"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
|
|
Loading…
Reference in New Issue