diff --git a/srcpkgs/cryptsetup-static b/srcpkgs/cryptsetup-static new file mode 120000 index 00000000000..a46924c674b --- /dev/null +++ b/srcpkgs/cryptsetup-static @@ -0,0 +1 @@ +cryptsetup \ No newline at end of file diff --git a/srcpkgs/cryptsetup/template b/srcpkgs/cryptsetup/template index f5dd1401318..0e254be5177 100644 --- a/srcpkgs/cryptsetup/template +++ b/srcpkgs/cryptsetup/template @@ -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 } -} +} \ No newline at end of file