wok-current annotate sloccount/receipt @ rev 25477

icedtea6-jdk: find output to variable
author Hans-G?nter Theisgen
date Thu Oct 13 17:53:47 2022 +0100 (2022-10-13)
parents cb817f2b4406
children
rev   line source
pascal@19971 1 # SliTaz package receipt.
pascal@19971 2
pascal@19971 3 PACKAGE="sloccount"
pascal@19971 4 VERSION="2.26"
pascal@19971 5 CATEGORY="development"
pascal@19971 6 SHORT_DESC="Counting physical Source Lines of Code (SLOC)."
pascal@19971 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@19971 8 LICENSE="GPL2"
pascal@19971 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@24535 10 WEB_SITE="https://dwheeler.com/sloccount/"
pascal@19971 11 WGET_URL="${WEB_SITE}$TARBALL"
pascal@19971 12
pascal@19971 13 DEPENDS="perl"
pascal@19971 14
pascal@24535 15 # What is the latest version available today?
pascal@24535 16 current_version()
pascal@24535 17 {
pascal@24535 18 wget -O - $WEB_SITE 2>/dev/null | \
pascal@24535 19 sed '/latest/!d;s|.*version ||;s| .*||;q'
pascal@24535 20 }
pascal@24535 21
pascal@19971 22 # Rules to configure and make the package.
pascal@19971 23 compile_rules()
pascal@19971 24 {
pascal@19971 25 mkdir -p $DESTDIR/usr/bin
pascal@19971 26 make PREFIX=$DESTDIR/usr install
pascal@19971 27 }
pascal@19971 28
pascal@19971 29 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@19971 30 genpkg_rules()
pascal@19971 31 {
pascal@19971 32 mkdir -p $fs/usr
pascal@19971 33 cp -a $install/usr/bin $fs/usr
pascal@19971 34 }