wok annotate splix/receipt @ rev 25616

Add emu2
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Aug 26 15:51:29 2023 +0000 (10 months ago)
parents ed5f25d05ff6
children
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"
pascal@25487 9 WEB_SITE="https://sourceforge.net/projects/splix/"
jozee@4554 10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@25465 11 WGET_URL="$SF_MIRROR/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@25607 17 # What is the latest version available today?
pascal@24082 18 current_version()
pascal@24082 19 {
pascal@24082 20 wget -O - https://sourceforge.net/projects/$PACKAGE/files/$PACKAGE 2>/dev/null | \
pascal@25607 21 sed '/scope="row/!d;s|.*a href="|"https://sourceforge.net|;s| .*||;q' | xargs wget -O - 2>/dev/null | \
pascal@24082 22 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q"
pascal@24082 23 }
pascal@24082 24
jozee@4554 25 # Rules to configure and make the package.
jozee@4554 26 compile_rules() {
jozee@4554 27 cd $src
pascal@5714 28 sed -i 's/Value::Value &val/Value \&val/' src/ppdfile.cpp
jozee@4554 29 make &&
gokhlayeh@8669 30 make CUPSFILTER=/`cups-config --serverbin`/filter \
gokhlayeh@8669 31 CUPSPPD=/`cups-config --datadir`/model \
gokhlayeh@8669 32 install
jozee@4554 33 }
jozee@4554 34
jozee@4554 35 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@4554 36 genpkg_rules()
jozee@4554 37 {
jozee@4554 38 mkdir -p $fs/usr/lib $fs/usr/share
pascal@15582 39 cp -a $install/usr/lib/cups $fs/usr/lib/
pascal@15582 40 cp -a $install/usr/share/cups $fs/usr/share
jozee@4554 41 # gzip all ppd files
gokhlayeh@8670 42 find $fs/usr/share/cups/model -name "*.ppd" | xargs gzip -n9
jozee@4554 43 }