wok view splix/receipt @ rev 25794

created recipe for exo-lang
author Hans-G?nter Theisgen
date Wed Oct 23 16:19:52 2024 +0100 (4 weeks ago)
parents ed5f25d05ff6
children
line source
1 # SliTaz package receipt.
3 PACKAGE="splix"
4 VERSION="2.0.0"
5 CATEGORY="system-tools"
6 MAINTAINER="jozee@slitaz.org"
7 LICENSE="GPL2"
8 SHORT_DESC="CUPS drivers for SPL (Samsung Printer Language) printers"
9 WEB_SITE="https://sourceforge.net/projects/splix/"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WGET_URL="$SF_MIRROR/splix/$TARBALL"
12 TAGS=""
14 DEPENDS="cups gcc gcc-lib-base"
15 BUILD_DEPENDS="cups cups-dev jbigkit"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://sourceforge.net/projects/$PACKAGE/files/$PACKAGE 2>/dev/null | \
21 sed '/scope="row/!d;s|.*a href="|"https://sourceforge.net|;s| .*||;q' | xargs wget -O - 2>/dev/null | \
22 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q"
23 }
25 # Rules to configure and make the package.
26 compile_rules() {
27 cd $src
28 sed -i 's/Value::Value &val/Value \&val/' src/ppdfile.cpp
29 make &&
30 make CUPSFILTER=/`cups-config --serverbin`/filter \
31 CUPSPPD=/`cups-config --datadir`/model \
32 install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/lib $fs/usr/share
39 cp -a $install/usr/lib/cups $fs/usr/lib/
40 cp -a $install/usr/share/cups $fs/usr/share
41 # gzip all ppd files
42 find $fs/usr/share/cups/model -name "*.ppd" | xargs gzip -n9
43 }