wok view gutenprint/receipt @ rev 25690
mmv: inserted current_version()
author | Hans-G?nter Theisgen |
---|---|
date | Mon Apr 15 15:20:24 2024 +0100 (6 months ago) |
parents | 7dd01dedad38 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="gutenprint"
4 VERSION="5.3.4"
5 CATEGORY="system-tools"
6 TAGS="printer driver"
7 SHORT_DESC="Top quality drivers for Canon and Epson printers."
8 MAINTAINER="jozee@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="https://gimp-print.sourceforge.net/"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="$SF_MIRROR/gimp-print/$TARBALL"
15 SUGGESTED="gutenprint-lang"
16 DEPENDS="cups gmp gnutls gtk+ libtasn1 readline"
17 BUILD_DEPENDS="cups-dev expat-dev foomatic-db-engine gmp-dev gnutls-dev
18 libgcrypt-dev liblzma-dev libtasn1-dev zlib-dev"
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - https://sourceforge.net/projects/gimp-print/files/ 2>/dev/null | \
24 sed '/scope="row/!d;/\/gutenprint-/!d;s|.*a href="|"https://sourceforge.net|;s| .*||;q' | xargs wget -O - 2>/dev/null | \
25 sed '/scope="row/!d;s|.*/gutenprint-[0-9\.]*/||;s|/.*||;q'
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 ./configure \
32 --prefix=/usr \
33 --sysconfdir=/etc \
34 --localstatedir=/var \
35 --mandir=/usr/share/man \
36 --disable-samples \
37 --with-cups \
38 --disable-test \
39 $CONFIGURE_ARGS &&
40 make &&
41 make install 2>&1 | grep -v "rmdir: '/home/slitaz/wok/gutenprint/"
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs/etc
48 mkdir -p $fs/usr/lib
49 mkdir -p $fs/usr/share
51 cp -a $install/usr/bin $fs/usr
52 cp -a $install/usr/sbin $fs/usr
53 cp -a $install/usr/lib/*.so* $fs/usr/lib
54 cp -a $install/usr/lib/cups $fs/usr/lib
55 cp -a $install/usr/lib/gutenprint $fs/usr/lib
56 cp -a $install/usr/share/cups $fs/usr/share
57 cp -a $install/usr/share/$PACKAGE $fs/usr/share
58 cp -a $install/etc $fs
60 # Remove documentation
61 rm -rf $fs/usr/share/$PACKAGE/doc
62 }