SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "unzip"

# SliTaz package receipt.

PACKAGE="unzip"
VERSION="6.0"
CATEGORY="system-tools"
SHORT_DESC="Zip dearchiver."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="other"
TARBALL="$PACKAGE${VERSION//./}.tar.gz"
WEB_SITE="https://infozip.sourceforge.net/"
WGET_URL="$SF_MIRROR/infozip/$TARBALL"
TAGS="archive compression"

# What is the latest version available today?
current_version()
{
    wget -O - $WEB_SITE/UnZip.html 2>/dev/null | \
    sed '/released/!d;s|.*Zip ||;s|<.*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    sed -i 's|uname -m|echo i486|' beos/Makefile
    ln -sf $WOK/$PACKAGE/$PACKAGE${VERSION//./} $WOK/$PACKAGE/$PACKAGE-$VERSION

    make -f unix/Makefile generic
    make -f unix/Makefile prefix=$DESTDIR install
}

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

# Remove Busybox symlink before installing
pre_install()
{
    rm -f "$1/usr/bin/unzip"
}

post_remove()
{
    ln -s /bin/busybox /usr/bin/unzip
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)