wok view p910nd/receipt @ rev 25705
fusecloop/extract_compressed_fs: can convert to v0.68 or v1.0
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jun 22 12:48:49 2024 +0000 (4 months ago) |
parents | 080c1dff8494 |
children |
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="https://github.com/kenyapcomau/p910nd"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://github.com/kenyapcomau/p910nd/archive/refs/tags/$VERSION.tar.gz"
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 sed -i 's|subsys/||' p910nd.8
26 make CFLAGS=-DLOCKFILE_DIR=\\\"/var/lock\\\" &&
27 make DESTDIR=$DESTDIR CONFIG=aux/p910nd.conf INITSCRIPT=aux/p910nd.init MANPAGE=p910nd.8 install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr
34 mkdir -p $fs/etc/init.d
36 cp -a $install/usr/sbin $fs/usr
38 sed '1,/%description/d;/%pre/,$d' $src/aux/p910nd.spec > $WOK/$PACKAGE/description.txt
39 ln -s daemon $fs/etc/init.d/p910nd
40 }