cryptsetup: enable also static linking

This commit is contained in:
Andrea Brancaleoni 2018-01-11 12:06:10 +01:00 committed by Andrea Brancaleoni
parent d98ae1ca67
commit 5f1e5538fa
2 changed files with 20 additions and 2 deletions

1
srcpkgs/cryptsetup-static Symbolic link
View File

@ -0,0 +1 @@
cryptsetup

View File

@ -1,7 +1,7 @@
# Template file for 'cryptsetup'
pkgname=cryptsetup
version=2.0.0
revision=1
revision=2
build_style=gnu-configure
configure_args="--with-crypto_backend=openssl $(vopt_enable pwquality)
--enable-cryptsetup-reencrypt"
@ -18,6 +18,18 @@ checksum=adc623b9e3e3ab5c14145b8baf21b741e513ee5bf90d2b4d85a745c2f05da199
build_options="pwquality"
desc_option_pwquality="Enable support for checking password quality via libpwquality"
case $XBPS_TARGET_MACHINE in
*-musl)
configure_args+=" --enable-static-cryptsetup"
cryptsetup-static_package() {
short_desc+=" - static cryptsetup"
pkg_install() {
vmove "usr/bin/*.static"
}
}
;;
esac
libcryptsetup_package() {
short_desc+=" - runtime libraries"
pkg_install() {
@ -31,5 +43,10 @@ cryptsetup-devel_package() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
case $XBPS_TARGET_MACHINE in
*-musl)
vmove "usr/lib/*.a"
;;
esac
}
}
}