wok view p910nd/receipt @ rev 24396
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Feb 08 12:15:27 2022 +0000 (2022-02-08) |
parents | 6c0d5218c80f |
children | 9981cfce1dd8 |
line source
1 # SliTaz package receipt.
3 PACKAGE="p910nd"
4 VERSION="0.97"
5 CATEGORY="network"
6 TAGS="printer"
7 SHORT_DESC="Network to printer (/dev/lp* or /dev/usb/lp*) gateway."
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="http://$PACKAGE.sourceforge.net/"
12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
15 # What is the latest version available today?
16 current_version()
17 {
18 wget -O - https://github.com/kenyapcomau/p910nd/tags 2>/dev/null | \
19 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 make CFLAGS=-DLOCKFILE_DIR=\\\"/var/lock\\\" &&
26 make DESTDIR=$DESTDIR install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr
33 mkdir -p $fs/etc/init.d
35 cp -a $install/usr/sbin $fs/usr
37 sed '1,/%description/d;/%pre/,$d' $src/p910nd.spec > $WOK/$PACKAGE/description.txt
38 ln -s daemon $fs/etc/init.d/p910nd
39 }