wok-6.x annotate foo2xqx/receipt @ rev 25425
updated xa (2.3.10 -> 2.3.13)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Aug 18 16:31:57 2022 +0100 (2022-08-18) |
parents | fbe88431f963 |
children |
rev | line source |
---|---|
pascal@17318 | 1 # SliTaz package receipt. |
pascal@17318 | 2 |
pascal@17318 | 3 PACKAGE="foo2xqx" |
pascal@17318 | 4 VERSION="20141104" |
pascal@17318 | 5 CATEGORY="system-tools" |
pascal@17318 | 6 SHORT_DESC="a linux printer driver for XQX stream protocol." |
pascal@17318 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@17318 | 8 LICENSE="GPL2" |
pascal@17318 | 9 TARBALL="foo2zjs.tar.gz" |
pascal@25375 | 10 WEB_SITE="https://github.com/koenkooi/foo2zjs/" |
pascal@17318 | 11 WGET_URL="http://foo2zjs.rkkda.com/$TARBALL" |
pascal@17318 | 12 |
pascal@17318 | 13 DEPENDS="ghostscript foo2xqx-data" |
pascal@17320 | 14 BUILD_DEPENDS="foomatic-db-engine bc" |
pascal@17318 | 15 |
pascal@25417 | 16 # What is the latest version available today? |
pascal@25417 | 17 current_version() |
pascal@25417 | 18 { |
pascal@25417 | 19 wget -O - $WEB_SITE/commits/master 2>/dev/null | \ |
pascal@25417 | 20 sed '/Commits on/!d;s|.*on |"|;s|<.*|"|;q' | xargs date +%Y%m%d -d |
pascal@25417 | 21 } |
pascal@25417 | 22 |
pascal@17318 | 23 # Rules to configure and make the package. |
pascal@17318 | 24 # |
pascal@17318 | 25 compile_rules() |
pascal@17318 | 26 { |
pascal@17318 | 27 FOO2XQX="P1005 P1006 P1007 P1008 P1505" |
pascal@17318 | 28 FOO2ZJS="cpwl 2200 2300 2430 1000 1005 1018 1020 1025" |
pascal@17318 | 29 FOO2HP="1215 1600 2600n" |
pascal@17318 | 30 FOO2OAK="1500" |
pascal@17318 | 31 FOO2LAVA="1600w 1680 1690 2480 2490 2530 4690 110 6115 6121" |
pascal@17318 | 32 FOO2SLX="500" |
pascal@17318 | 33 FOO2HIPERC="301 c310 c810 3100 3200 3300 3400 3530 5100 5200 5500 5600 5800 160" |
pascal@17318 | 34 FOO2QPDL="300 310 315 325 360 365 2160 3160 3175 3185 6110 600 610" |
pascal@20212 | 35 sed -i 's|uname -m|echo i486|' Makefile |
pascal@17318 | 36 make |
pascal@17318 | 37 for i in $FOO2XQX $FOO2ZJS $FOO2HP $FOO2OAK $FOO2LAVA \ |
pascal@17318 | 38 $FOO2SLX $FOO2HIPERC $FOO2QPDL ; do |
pascal@17318 | 39 ./getweb $i |
pascal@17318 | 40 done |
pascal@17320 | 41 mkdir -p $DESTDIR/usr/lib/cups/filter |
pascal@17318 | 42 make DESTDIR=$DESTDIR install |
pascal@17318 | 43 } |
pascal@17318 | 44 |
pascal@17318 | 45 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@17318 | 46 genpkg_rules() |
pascal@17318 | 47 { |
pascal@17318 | 48 mkdir -p $fs/usr |
pascal@17318 | 49 cp -a $install/bin $fs |
pascal@17318 | 50 cp -a $install/usr/bin $fs/usr |
pascal@17318 | 51 } |