SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "pbzip2"

# SliTaz package receipt.

PACKAGE="pbzip2"
VERSION="1.1.13"
CATEGORY="base-system"
SHORT_DESC="Parallel implementation of bzip2."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="BSD"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="https://web.archive.org/web/20180324210720/http://compression.ca/pbzip2/"
WGET_URL="https://launchpad.net/pbzip2/${VERSION%.*}/$VERSION/+download/$TARBALL"

DEPENDS="bzlib"
BUILD_DEPENDS="bzip2-dev wget"

current_version()
{
    wget -O - https://launchpad.net/pbzip2 2>/dev/null | \
    sed '/Latest version/!d;s|.*is ||'
}

# Rules to configure and make the package.
compile_rules()
{
    make
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/bin
    cp $src/pbzip2 $fs/usr/bin
}

pre_remove()
{
    sed -i '/bzip2=pbzip2/d' $1/etc/profile
}

post_install()
{
    grep -qs 'bzip2=pbzip2' $1/etc/profile ||
    echo 'alias bzip2=pbzip2' >> $1/etc/profile
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)