wok-current annotate npush/receipt @ rev 24867

updated lvm2, lvm2-dev, libdevmapper and libdevmapper-dev (2.03.08 -> 2.03.15)
author Hans-G?nter Theisgen
date Wed Mar 30 17:27:13 2022 +0100 (2022-03-30)
parents c101210f8efc
children
rev   line source
pascal@21729 1 # SliTaz package receipt.
pascal@21729 2
pascal@21729 3 PACKAGE="npush"
pascal@21729 4 VERSION="0.7"
pascal@21729 5 CATEGORY="games"
pascal@21729 6 SHORT_DESC="http://npush.sourceforge.net/"
pascal@21729 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@21729 8 LICENSE="GPL2"
pascal@21729 9 TARBALL="$PACKAGE-$VERSION.tgz"
pascal@21729 10 WEB_SITE="http://zsync.moria.org.uk/"
pascal@21729 11 WGET_URL="$SF_MIRROR/$PACKAGE/$VERSION/$TARBALL"
pascal@21729 12
pascal@21730 13 DEPENDS="ncurses"
pascal@21730 14 BUILD_DEPENDS="ncurses-dev"
pascal@21729 15
pascal@24402 16 # What is the latest version available today?
pascal@24402 17 current_version()
pascal@24402 18 {
pascal@24402 19 wget -O - https://sourceforge.net/projects/npush/files/npush/ 2>/dev/null | \
pascal@24402 20 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24402 21 sed '/scope="row/!d;s|.*/npush/||;s|/.*||;q'
pascal@24402 22 }
pascal@24402 23
pascal@21729 24 # Rules to configure and make the package.
pascal@21729 25 compile_rules()
pascal@21729 26 {
pascal@21729 27 sed -i 's|"levels|"/usr/share/npush|' npush.cpp
pascal@21729 28 sed -i 's|-lncurses|& -ltinfo|' Makefile
pascal@21729 29 make
pascal@21729 30 }
pascal@21729 31
pascal@21729 32 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@21729 33 genpkg_rules()
pascal@21729 34 {
pascal@21729 35 mkdir -p $fs/usr/bin $fs/usr/share
pascal@21729 36 cp -a $src/levels $fs/usr/share/npush
pascal@21729 37 cp $src/npush $fs/usr/bin
pascal@21729 38 }