wok-current annotate brotli/receipt @ rev 25669
Add rdfind, required for firmware build
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Sat Mar 02 20:53:40 2024 +0000 (5 months ago) |
parents | f08fe4855be4 |
children |
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 { |
shann@25634 | 26 mkdir build && cd build |
shann@25634 | 27 cmake \ |
shann@25634 | 28 -DCMAKE_BUILD_TYPE=Release \ |
shann@25634 | 29 -DCMAKE_INSTALL_PREFIX=/usr \ |
shann@25634 | 30 .. && |
shann@25634 | 31 make && make install |
pascal@18918 | 32 } |
pascal@18918 | 33 |
pascal@18918 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@18918 | 35 genpkg_rules() |
pascal@18918 | 36 { |
pascal@19931 | 37 mkdir -p $fs/usr/bin $fs/usr/lib |
shann@25634 | 38 cp -a $install/usr/bin/brotli $fs/usr/bin/ |
pascal@20181 | 39 ln -s brotli $fs/usr/bin/bro |
shann@25634 | 40 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pascal@18918 | 41 } |