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