wok-6.x view pbzip2/receipt @ rev 23955

Add rhash
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Sep 26 09:25:55 2020 +0000 (2020-09-26)
parents 826c1bab582b
children 15650f5d595b
line source
1 # SliTaz package receipt.
3 PACKAGE="pbzip2"
4 VERSION="1.1.13"
5 CATEGORY="base-system"
6 SHORT_DESC="Parallel implementation of bzip2."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="BSD"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://web.archive.org/web/20180324210720/http://compression.ca/pbzip2/"
11 WGET_URL="https://launchpad.net/pbzip2/${VERSION%.*}/$VERSION/+download/$TARBALL"
13 DEPENDS="bzlib"
14 BUILD_DEPENDS="bzip2-dev wget"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 make
20 }
22 # Rules to gen a SliTaz package suitable for Tazpkg.
23 genpkg_rules()
24 {
25 mkdir -p $fs/usr/bin
26 cp $src/pbzip2 $fs/usr/bin
27 }
29 pre_remove()
30 {
31 sed -i '/bzip2=pbzip2/d' $1/etc/profile
32 }
34 post_install()
35 {
36 grep -qs 'bzip2=pbzip2' $1/etc/profile ||
37 echo 'alias bzip2=pbzip2' >> $1/etc/profile
38 }