SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "patch"

# SliTaz package receipt.

PACKAGE="patch"
VERSION="2.6.1"
CATEGORY="utilities"
SHORT_DESC="Utilitie to patch file with diff file."
MAINTAINER="pankso@slitaz.org"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://www.gnu.org/software/patch/"
WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"

DEPENDS="glibc-base"
BUILD_DEPENDS="gcc"

# Rules to compile & install the temporary toolchain by Tazwok.
cook_tmp_toolchain()
{
    cd $src
    ./configure && make && make install
}

# Rules to configure and make the package.
compile_rules()
{
    cd $src
    ./configure $CONFIGURE_ARGS && 
    make && make install
}

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

# Prevent erasing busybox...
pre_install()
{
    local root
    root=$1
    rm -f $root/usr/bin/patch
}

post_remove()
{
    ln -s /bin/busybox /usr/bin/patch
}
3382 packages and 430813 files in stable database (Mon Mar 4 17:53:49 2019)