wok annotate pbzip2/receipt @ rev 25707
Up perl-net-pcap (0.21), qtermwidget (0.5.1), youtube-dl-gui (0.3.8)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jul 05 14:08:34 2024 +0000 (4 months ago) |
parents | 425563100416 |
children |
rev | line source |
---|---|
pascal@15195 | 1 # SliTaz package receipt. |
pascal@15195 | 2 |
pascal@15195 | 3 PACKAGE="pbzip2" |
pascal@20180 | 4 VERSION="1.1.13" |
pascal@15195 | 5 CATEGORY="base-system" |
pascal@15195 | 6 SHORT_DESC="Parallel implementation of bzip2." |
pascal@15195 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15195 | 8 LICENSE="BSD" |
pascal@15195 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@20672 | 10 WEB_SITE="https://web.archive.org/web/20180324210720/http://compression.ca/pbzip2/" |
pascal@21220 | 11 WGET_URL="https://launchpad.net/pbzip2/${VERSION%.*}/$VERSION/+download/$TARBALL" |
pascal@15195 | 12 |
pascal@15196 | 13 DEPENDS="bzlib" |
pascal@16393 | 14 BUILD_DEPENDS="bzip2-dev wget" |
pascal@15195 | 15 |
pascal@24102 | 16 current_version() |
pascal@24102 | 17 { |
pascal@24102 | 18 wget -O - https://launchpad.net/pbzip2 2>/dev/null | \ |
pascal@24102 | 19 sed '/Latest version/!d;s|.*is ||' |
pascal@24102 | 20 } |
pascal@24102 | 21 |
pascal@15195 | 22 # Rules to configure and make the package. |
pascal@15195 | 23 compile_rules() |
pascal@15195 | 24 { |
pascal@15195 | 25 make |
pascal@15195 | 26 } |
pascal@15195 | 27 |
pascal@15195 | 28 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@15195 | 29 genpkg_rules() |
pascal@15195 | 30 { |
pascal@15195 | 31 mkdir -p $fs/usr/bin |
pascal@15195 | 32 cp $src/pbzip2 $fs/usr/bin |
pascal@15195 | 33 } |
pascal@23955 | 34 |
pascal@23955 | 35 pre_remove() |
pascal@23955 | 36 { |
pascal@23955 | 37 sed -i '/bzip2=pbzip2/d' $1/etc/profile |
pascal@23955 | 38 } |
pascal@23955 | 39 |
pascal@23955 | 40 post_install() |
pascal@23955 | 41 { |
pascal@23955 | 42 grep -qs 'bzip2=pbzip2' $1/etc/profile || |
pascal@23955 | 43 echo 'alias bzip2=pbzip2' >> $1/etc/profile |
pascal@23955 | 44 } |