Skip to content

Commit

Permalink
zopfli: build with cmake; add a devel subpkg
Browse files Browse the repository at this point in the history
remove unnecessary vlicense

Closes void-linux#23986
Closes void-linux#24003
  • Loading branch information
mrnoname1000 authored and Yassine Labidi committed Jan 24, 2021
1 parent 5529f76 commit a966e5d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
1 change: 1 addition & 0 deletions srcpkgs/zopfli-devel
22 changes: 11 additions & 11 deletions srcpkgs/zopfli/template
@@ -1,23 +1,23 @@
# Template file for 'zopfli'
pkgname=zopfli
version=1.0.3
revision=1
revision=2
wrksrc="${pkgname}-${pkgname}-${version}"
build_style=gnu-makefile
make_build_args="zopfli zopflipng"
build_style=cmake
configure_args=-DZOPFLI_BUILD_SHARED=ON
short_desc="Very good, but slow, deflate or zlib compression"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="Apache-2.0"
homepage="https://github.com/google/zopfli"
distfiles="https://github.com/google/${pkgname}/archive/${pkgname}-${version}.tar.gz"
checksum=e955a7739f71af37ef3349c4fa141c648e8775bceb2195be07e86f8e638814bd

pre_build() {
export CFLAGS="$CFLAGS $LDFLAGS -lm"
}

do_install() {
vbin zopfli
vbin zopflipng
vlicense COPYING LICENSE
zopfli-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
vmove usr/lib/cmake
}
}

0 comments on commit a966e5d

Please sign in to comment.