SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "gawk"

# SliTaz package receipt.

PACKAGE="gawk"
VERSION="3.1.8"
CATEGORY="development"
SHORT_DESC="GNU awk to handle simple data-reformatting."
MAINTAINER="pankso@slitaz.org"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://www.gnu.org/software/gawk/"
WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"

DEPENDS=""
BUILD_DEPENDS="gcc"

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

# Rules to configure and make the package.
compile_rules()
{
    cd $src
    ./configure --libexecdir=/usr/lib \
        $CONFIGURE_ARGS &&
    make &&    make install
}

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

# Pre and post install commands for Tazpkg.
# We must remove all Busybox symlink before installing.
pre_install()
{
    local root
    root=$1
    rm -f $root/usr/bin/awk
}

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