diff --git a/srcpkgs/brotli/template b/srcpkgs/brotli/template index d9a393a95173cf..8c1ee8fb299af2 100644 --- a/srcpkgs/brotli/template +++ b/srcpkgs/brotli/template @@ -1,8 +1,9 @@ # Template file for 'brotli' pkgname=brotli version=1.2.0 -revision=1 +revision=2 build_style=cmake +configure_args="-DBROTLI_BUILD_FOR_PACKAGE=ON" short_desc="Generic-purpose lossless compression algorithm" maintainer="Leah Neukirchen " license="MIT" @@ -12,6 +13,11 @@ checksum=816c96e8e8f193b40151dad7e8ff37b1221d019dbcb9c35cd3fadbfe6477dfec post_install() { vlicense LICENSE + + # Drop the -static suffix from static libs + for p in ${DESTDIR}/usr/lib/*-static.a; do + mv -v ${p} ${p%-static.a}.a + done } brotli-devel_package() { @@ -20,6 +26,7 @@ brotli-devel_package() { pkg_install() { vmove usr/include vmove usr/lib/*.so + vmove usr/lib/*.a vmove usr/lib/pkgconfig } }