wok-current annotate p910nd/receipt @ rev 24990
idesk: imlib2 >= 1.7.5 support
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri May 13 20:03:04 2022 +0000 (2022-05-13) |
parents | 080c1dff8494 |
children |
rev | line source |
---|---|
pascal@8405 | 1 # SliTaz package receipt. |
pascal@8405 | 2 |
pascal@8405 | 3 PACKAGE="p910nd" |
Hans-G?nter@21656 | 4 VERSION="0.97" |
pascal@8405 | 5 CATEGORY="network" |
Hans-G?nter@21656 | 6 TAGS="printer" |
pascal@8405 | 7 SHORT_DESC="Network to printer (/dev/lp* or /dev/usb/lp*) gateway." |
pascal@8405 | 8 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@14781 | 9 LICENSE="GPL2" |
pascal@24990 | 10 WEB_SITE="https://github.com/kenyapcomau/p910nd" |
Hans-G?nter@21656 | 11 |
pascal@24990 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@24990 | 13 WGET_URL="https://github.com/kenyapcomau/p910nd/archive/refs/tags/$VERSION.tar.gz" |
pascal@8405 | 14 |
pascal@24396 | 15 # What is the latest version available today? |
pascal@24396 | 16 current_version() |
pascal@24396 | 17 { |
pascal@24396 | 18 wget -O - https://github.com/kenyapcomau/p910nd/tags 2>/dev/null | \ |
pascal@24396 | 19 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' |
pascal@24396 | 20 } |
pascal@24396 | 21 |
pascal@8405 | 22 # Rules to configure and make the package. |
pascal@8405 | 23 compile_rules() |
pascal@8405 | 24 { |
pascal@24990 | 25 sed -i 's|subsys/||' p910nd.8 |
pascal@8405 | 26 make CFLAGS=-DLOCKFILE_DIR=\\\"/var/lock\\\" && |
pascal@24990 | 27 make DESTDIR=$DESTDIR CONFIG=aux/p910nd.conf INITSCRIPT=aux/p910nd.init MANPAGE=p910nd.8 install |
pascal@8405 | 28 } |
pascal@8405 | 29 |
pascal@8405 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@8405 | 31 genpkg_rules() |
pascal@8405 | 32 { |
Hans-G?nter@21656 | 33 mkdir -p $fs/usr |
Hans-G?nter@21656 | 34 mkdir -p $fs/etc/init.d |
Hans-G?nter@21656 | 35 |
pascal@13518 | 36 cp -a $install/usr/sbin $fs/usr |
Hans-G?nter@21656 | 37 |
pascal@24990 | 38 sed '1,/%description/d;/%pre/,$d' $src/aux/p910nd.spec > $WOK/$PACKAGE/description.txt |
pascal@8405 | 39 ln -s daemon $fs/etc/init.d/p910nd |
pascal@8405 | 40 } |