wok-6.x view splix/receipt @ rev 25527
created recipes for libmpack and libmpack-dev 1.0.5
author | Hans-G?nter Theisgen |
---|---|
date | Sat Feb 25 07:28:19 2023 +0100 (20 months ago) |
parents | 65ff25c4de90 |
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 current_version()
18 {
19 wget -O - https://sourceforge.net/projects/$PACKAGE/files/$PACKAGE 2>/dev/null | \
20 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
21 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q"
22 }
24 # Rules to configure and make the package.
25 compile_rules() {
26 cd $src
27 sed -i 's/Value::Value &val/Value \&val/' src/ppdfile.cpp
28 make &&
29 make CUPSFILTER=/`cups-config --serverbin`/filter \
30 CUPSPPD=/`cups-config --datadir`/model \
31 install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/lib $fs/usr/share
38 cp -a $install/usr/lib/cups $fs/usr/lib/
39 cp -a $install/usr/share/cups $fs/usr/share
40 # gzip all ppd files
41 find $fs/usr/share/cups/model -name "*.ppd" | xargs gzip -n9
42 }