# SliTaz package receipt. PACKAGE="sloccount" VERSION="2.26" CATEGORY="development" SHORT_DESC="Counting physical Source Lines of Code (SLOC)." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL2" TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="https://dwheeler.com/sloccount/" WGET_URL="${WEB_SITE}$TARBALL" DEPENDS="perl" # What is the latest version available today? current_version() { wget -O - $WEB_SITE 2>/dev/null | \ sed '/latest/!d;s|.*version ||;s| .*||;q' } # Rules to configure and make the package. compile_rules() { mkdir -p $DESTDIR/usr/bin make PREFIX=$DESTDIR/usr install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr cp -a $install/usr/bin $fs/usr }