zopfli: build with cmake; add a devel subpkg

remove unnecessary vlicense

Closes #23986
Closes #24003
This commit is contained in:
Oliver Nutter 2020-08-02 04:44:52 -05:00 committed by Érico Rolim
parent 6e61ccec91
commit 43c98a178b
2 changed files with 12 additions and 11 deletions

1
srcpkgs/zopfli-devel Symbolic link
View file

@ -0,0 +1 @@
zopfli

View file

@ -1,10 +1,10 @@
# Template file for 'zopfli' # Template file for 'zopfli'
pkgname=zopfli pkgname=zopfli
version=1.0.3 version=1.0.3
revision=1 revision=2
wrksrc="${pkgname}-${pkgname}-${version}" wrksrc="${pkgname}-${pkgname}-${version}"
build_style=gnu-makefile build_style=cmake
make_build_args="zopfli zopflipng" configure_args=-DZOPFLI_BUILD_SHARED=ON
short_desc="Very good, but slow, deflate or zlib compression" short_desc="Very good, but slow, deflate or zlib compression"
maintainer="Leah Neukirchen <leah@vuxu.org>" maintainer="Leah Neukirchen <leah@vuxu.org>"
license="Apache-2.0" license="Apache-2.0"
@ -12,12 +12,12 @@ homepage="https://github.com/google/zopfli"
distfiles="https://github.com/google/${pkgname}/archive/${pkgname}-${version}.tar.gz" distfiles="https://github.com/google/${pkgname}/archive/${pkgname}-${version}.tar.gz"
checksum=e955a7739f71af37ef3349c4fa141c648e8775bceb2195be07e86f8e638814bd checksum=e955a7739f71af37ef3349c4fa141c648e8775bceb2195be07e86f8e638814bd
pre_build() { zopfli-devel_package() {
export CFLAGS="$CFLAGS $LDFLAGS -lm" depends="${sourcepkg}>=${version}_${revision}"
} short_desc+=" - development files"
pkg_install() {
do_install() { vmove usr/include
vbin zopfli vmove "usr/lib/*.so"
vbin zopflipng vmove usr/lib/cmake
vlicense COPYING LICENSE }
} }