wok-current view p910nd/receipt @ rev 25266
gdk-pixbuf: added dependency libjpeg
author | Hans-G?nter Theisgen |
---|---|
date | Fri Jul 15 13:56:48 2022 +0100 (2022-07-15) |
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 }