wok annotate brotli/receipt @ rev 25491
Up foomatic-db-nonfree (20221116)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Nov 17 12:13:24 2022 +0000 (24 months ago) |
parents | 5ea0ce1cecc0 |
children | 343c093ad221 |
rev | line source |
---|---|
pascal@18918 | 1 # SliTaz package receipt. |
pascal@18918 | 2 |
pascal@18918 | 3 PACKAGE="brotli" |
pascal@24060 | 4 VERSION="1.0.9" |
pascal@18918 | 5 CATEGORY="base-system" |
pascal@18918 | 6 SHORT_DESC="A generic-purpose lossless compression algorithm." |
pascal@18918 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@18918 | 8 LICENSE="MIT" |
pascal@18918 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@18918 | 10 WEB_SITE="https://github.com/google/brotli" |
pascal@18918 | 11 WGET_URL="$WEB_SITE/archive/v$VERSION.tar.gz" |
pascal@18918 | 12 TAGS="compression" |
pascal@18918 | 13 |
pascal@18920 | 14 DEPENDS="gcc-lib-base" |
pascal@21580 | 15 BUILD_DEPENDS="python-dev python-setuptools cmake" |
pascal@18918 | 16 |
pascal@24055 | 17 current_version() |
pascal@24055 | 18 { |
pascal@24055 | 19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 20 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' |
pascal@24055 | 21 } |
pascal@24055 | 22 |
pascal@18918 | 23 # Rules to configure and make the package. |
pascal@18918 | 24 compile_rules() |
pascal@18918 | 25 { |
pascal@19397 | 26 cmake . |
pascal@20181 | 27 make |
pascal@18918 | 28 } |
pascal@18918 | 29 |
pascal@18918 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@18918 | 31 genpkg_rules() |
pascal@18918 | 32 { |
pascal@19931 | 33 mkdir -p $fs/usr/bin $fs/usr/lib |
pascal@20181 | 34 cp -a $src/brotli $fs/usr/bin/ |
pascal@20181 | 35 ln -s brotli $fs/usr/bin/bro |
pascal@19931 | 36 cp -a $src/*.so* $fs/usr/lib |
pascal@18918 | 37 } |