SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "grep"

# SliTaz package receipt.

PACKAGE="grep"
VERSION="2.10"
CATEGORY="development"
SHORT_DESC="GNU Global Regular Expression Print."
MAINTAINER="paul@slitaz.org"
TARBALL="$PACKAGE-$VERSION.tar.xz"
WEB_SITE="http://www.gnu.org/software/grep/"
WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"

DEPENDS="pcre"
BUILD_DEPENDS="pcre-dev"

# 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
    cp -a $_pkg/usr/bin $fs/usr
}

# Pre and post install commands for Tazpkg.
# We must remove all Busybox symlink before installing.
#
pre_install()
{
    local root
    root=$1
    echo "Processing pre-install commands..."
    echo -n "Removing all Busybox replaced utils... "
    rm -f $root/usr/bin/grep
    status
}

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