wok view npush/receipt @ rev 25656

Up fwknop (2.6.11)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Feb 09 11:08:06 2024 +0000 (9 months ago)
parents afae00265386
children
line source
1 # SliTaz package receipt.
3 PACKAGE="npush"
4 VERSION="0.7"
5 CATEGORY="games"
6 SHORT_DESC="http://npush.sourceforge.net/"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tgz"
10 WEB_SITE="http://zsync.moria.org.uk/"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$VERSION/$TARBALL"
13 DEPENDS="ncurses"
14 BUILD_DEPENDS="ncurses-dev"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - https://sourceforge.net/projects/npush/files/npush/ 2>/dev/null | \
20 sed '/scope="row/!d;s|.*a href="|"https://sourceforge.net|;s| .*||;q' | xargs wget -O - 2>/dev/null | \
21 sed '/scope="row/!d;s|.*/npush/||;s|/.*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 sed -i 's|"levels|"/usr/share/npush|' npush.cpp
28 sed -i 's|-lncurses|& -ltinfo|' Makefile
29 make
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/bin $fs/usr/share
36 cp -a $src/levels $fs/usr/share/npush
37 cp $src/npush $fs/usr/bin
38 }