wok-current annotate gutenprint/receipt @ rev 25601

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