SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "foo2xqx"

# SliTaz package receipt.

PACKAGE="foo2xqx"
VERSION="20210406"
CATEGORY="system-tools"
SHORT_DESC="a linux printer driver for XQX stream protocol."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL2"
TARBALL="foo2zjs-$VERSION.tar.gz"
WEB_SITE="https://foo2zjs.linkevich.net/"
WGET_URL="https://foo2zjs.linkevich.net//foo2zjs/foo2zjs.tar.gz"

DEPENDS="ghostscript foo2xqx-data"
BUILD_DEPENDS="foomatic-db-engine bc"

# What is the latest version available today?
current_version()
{
    # wget -O - $WEB_SITE 2>/dev/null | sed '/Current version/!d;s|.*/b> *||;s| *<.*||'
    wget -O - https://github.com/koenkooi/foo2zjs/commits/master 2>/dev/null | \
    sed '/Commits on/!d;s|.*on |"|;s|<.*|"|;q' | xargs date +%Y%m%d -d
}

# Rules to configure and make the package.
#
compile_rules()
{
    FOO2XQX="P1005 P1006 P1007 P1008 P1505"
    FOO2ZJS="cpwl 2200 2300 2430 1000 1005 1018 1020 1025"
    FOO2HP="1215 1600 2600n"
    FOO2OAK="1500"
    FOO2LAVA="1600w 1680 1690 2480 2490 2530 4690 110 6115 6121"
    FOO2SLX="500"
    FOO2HIPERC="301 c310 c810 3100 3200 3300 3400 3530 5100 5200 5500 5600 5800 160"
    FOO2QPDL="300 310 315 325 360 365 2160 3160 3175 3185 6110 600 610"
    sed -i 's|uname -m|echo i486|' Makefile
    make
    # for i in $(sed '/getweb/!d;/gmake/d;s|.*getweb *||;s|[ \t].*||' INSTALL); do
    for i in $FOO2XQX $FOO2ZJS $FOO2HP $FOO2OAK $FOO2LAVA \
         $FOO2SLX $FOO2HIPERC $FOO2QPDL ; do
        ./getweb $i
    done
    mkdir -p $DESTDIR/usr/lib/cups/filter
    make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr
    cp -a $install/bin $fs
    cp -a $install/usr/bin $fs/usr
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)