# SliTaz package receipt. PACKAGE="gawk" VERSION="5.1.1" CATEGORY="development" SHORT_DESC="GNU awk to handle simple data-reformatting." MAINTAINER="pankso@slitaz.org" LICENSE="GPL3" WEB_SITE="https://www.gnu.org/software/gawk/" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" SUGGESTED="gawk-lang" DEPENDS="" BUILD_DEPENDS="" HOST_ARCH="i486 arm" # What is the latest version available today? current_version() { wget -O - ${WGET_URL%/*} 2>/dev/null | \ sed "/doc/d;/ps/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q } # Rules to compile & install the temporary toolchain. cook_tmp_toolchain() { ./configure && make && make install } # Rules to configure and make the package. compile_rules() { ./configure \ --libexecdir=/usr/lib \ $CONFIGURE_ARGS && make && make install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { # locales # moved to package gawk-lang mkdir -p $fs/usr/share cp -a $install/usr/bin $fs/usr cp -a $install/usr/share/awk $fs/usr/share } # Pre and post install commands for Tazpkg. # We must remove all Busybox symlink before installing. pre_install() { rm -f "$1/usr/bin/awk" } post_remove() { ln -s /bin/busybox "$1/usr/bin/awk" }