SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "splix"

# SliTaz package receipt.

PACKAGE="splix"
VERSION="2.0.0"
CATEGORY="system-tools"
MAINTAINER="jozee@slitaz.org"
LICENSE="GPL2"
SHORT_DESC="CUPS drivers for SPL (Samsung Printer Language) printers"
WEB_SITE="https://sourceforge.net/projects/splix/"
TARBALL="$PACKAGE-$VERSION.tar.bz2"
WGET_URL="$SF_MIRROR/splix/$TARBALL"
TAGS=""

DEPENDS="cups gcc gcc-lib-base"
BUILD_DEPENDS="cups cups-dev jbigkit"

current_version()
{
    wget -O - https://sourceforge.net/projects/$PACKAGE/files/$PACKAGE 2>/dev/null | \
    sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
    sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q"
}

# Rules to configure and make the package.
compile_rules() {
      cd $src
      sed -i 's/Value::Value &val/Value \&val/' src/ppdfile.cpp
      make &&
      make  CUPSFILTER=/`cups-config --serverbin`/filter \
            CUPSPPD=/`cups-config --datadir`/model \
            install
}
    
# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/lib $fs/usr/share
    cp -a $install/usr/lib/cups $fs/usr/lib/
    cp -a $install/usr/share/cups $fs/usr/share        
    # gzip all ppd files
    find $fs/usr/share/cups/model -name "*.ppd" | xargs gzip -n9
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)