wok annotate splix/receipt @ rev 24268

updated perl-uri (1.76 -> 5.10)
author Hans-G?nter Theisgen
date Sun Jan 02 10:35:32 2022 +0100 (2022-01-02)
parents 3d805214d753
children 65ff25c4de90
rev   line source
jozee@4554 1 # SliTaz package receipt.
jozee@4554 2
jozee@4554 3 PACKAGE="splix"
jozee@4554 4 VERSION="2.0.0"
jozee@4554 5 CATEGORY="system-tools"
jozee@4554 6 MAINTAINER="jozee@slitaz.org"
pascal@15582 7 LICENSE="GPL2"
jozee@4554 8 SHORT_DESC="CUPS drivers for SPL (Samsung Printer Language) printers"
jozee@4554 9 WEB_SITE="http://splix.ap2c.org/"
jozee@4554 10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
jozee@4554 11 WGET_URL="http://downloads.sourceforge.net/splix/$TARBALL"
jozee@4554 12 TAGS=""
jozee@4554 13
pascal@15582 14 DEPENDS="cups gcc gcc-lib-base"
pascal@15582 15 BUILD_DEPENDS="cups cups-dev jbigkit"
pascal@15582 16
pascal@24082 17 current_version()
pascal@24082 18 {
pascal@24082 19 wget -O - https://sourceforge.net/projects/$PACKAGE/files/$PACKAGE 2>/dev/null | \
pascal@24082 20 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24082 21 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q"
pascal@24082 22 }
pascal@24082 23
jozee@4554 24 # Rules to configure and make the package.
jozee@4554 25 compile_rules() {
jozee@4554 26 cd $src
pascal@5714 27 sed -i 's/Value::Value &val/Value \&val/' src/ppdfile.cpp
jozee@4554 28 make &&
gokhlayeh@8669 29 make CUPSFILTER=/`cups-config --serverbin`/filter \
gokhlayeh@8669 30 CUPSPPD=/`cups-config --datadir`/model \
gokhlayeh@8669 31 install
jozee@4554 32 }
jozee@4554 33
jozee@4554 34 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@4554 35 genpkg_rules()
jozee@4554 36 {
jozee@4554 37 mkdir -p $fs/usr/lib $fs/usr/share
pascal@15582 38 cp -a $install/usr/lib/cups $fs/usr/lib/
pascal@15582 39 cp -a $install/usr/share/cups $fs/usr/share
jozee@4554 40 # gzip all ppd files
gokhlayeh@8670 41 find $fs/usr/share/cups/model -name "*.ppd" | xargs gzip -n9
jozee@4554 42 }