wok annotate zopfli/receipt @ rev 24768
libwebkit: bison 3 fix
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Mar 19 12:46:44 2022 +0000 (2022-03-19) |
parents | 4e55d27fb074 |
children | 0262035dc1e7 |
rev | line source |
---|---|
pascal@18916 | 1 # SliTaz package receipt. |
pascal@18916 | 2 |
pascal@18916 | 3 PACKAGE="zopfli" |
Hans-G?nter@23794 | 4 VERSION="1.0.3" |
pascal@18916 | 5 CATEGORY="base-system" |
Hans-G?nter@23794 | 6 TAGS="compression" |
pascal@18916 | 7 SHORT_DESC="A good, but slow, deflate or zlib compressor." |
pascal@18916 | 8 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@18916 | 9 LICENSE="Apache" |
Hans-G?nter@23794 | 10 WEB_SITE="https://github.com/google/zopfli" |
Hans-G?nter@23794 | 11 |
pascal@18916 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@18916 | 13 WGET_URL="$WEB_SITE/archive/$TARBALL" |
pascal@18916 | 14 |
pascal@22396 | 15 DEPENDS="gcc83-lib-base" |
pascal@22396 | 16 BUILD_DEPENDS="gcc83" |
pascal@18916 | 17 |
pascal@24055 | 18 current_version() |
pascal@24055 | 19 { |
pascal@24055 | 20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 21 sed '/archive.*tar/!d;s|.*/zopfli-\(.*\).tar.*|\1|;q' |
pascal@24055 | 22 } |
pascal@24055 | 23 |
pascal@18916 | 24 # Rules to configure and make the package. |
pascal@18916 | 25 compile_rules() |
pascal@18916 | 26 { |
pascal@22396 | 27 make CC=gcc-83 CXX=g++-83 zopflipng zopfli libzopfli |
pascal@18916 | 28 } |
pascal@18916 | 29 |
pascal@18916 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@18916 | 31 genpkg_rules() |
pascal@18916 | 32 { |
Hans-G?nter@23794 | 33 mkdir -p $fs/usr/bin |
Hans-G?nter@23794 | 34 mkdir -p $install/usr/share/doc |
Hans-G?nter@23794 | 35 |
Hans-G?nter@23794 | 36 cp -a $src/zopfli $fs/usr/bin |
Hans-G?nter@23794 | 37 cp -a $src/zopflipng $fs/usr/bin |
Hans-G?nter@23794 | 38 cp $src/README* $install/usr/share/doc |
pascal@18916 | 39 } |