# SliTaz package receipt. PACKAGE="gengetopt" VERSION="2.23" CATEGORY="development" SHORT_DESC="A tool to write command line option parsing code for C programs" MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL3" TARBALL="$PACKAGE-$VERSION.tar.xz" WEB_SITE="http://www.gnu.org/software/gengetopt/gengetopt.html" WGET_URL="https://ftp.gnu.org/gnu/gengetopt/gengetopt-$VERSION.tar.xz" DEPENDS="gcc-lib-base" BUILD_DEPENDS="flex texinfo" # What is the latest version available today? current_version() { wget -O - ${WGET_URL%/*}/ 2>/dev/null | \ sed '/gengetopt-/!d;s|.*gengetopt-||;s|.t.*||' | sort -Vr | sed q } # Rules to configure and make the package. compile_rules() { ./configure --prefix=/usr \ $CONFIGURE_ARGS && make && make DESTDIR=$DESTDIR install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { cp -a $install/* $fs/ }