wok annotate foomatic-db-nonfree/receipt @ rev 4831
Up: beaver (0.4.0rc1) - Add custom config file, may replace geany has code editor
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu Jan 21 23:14:05 2010 +0100 (2010-01-21) |
parents | |
children | fb8aceda65ff |
rev | line source |
---|---|
jozee@4553 | 1 # SliTaz package receipt. |
jozee@4553 | 2 |
jozee@4553 | 3 PACKAGE="foomatic-db-nonfree" |
jozee@4553 | 4 VERSION="current" |
jozee@4553 | 5 CATEGORY="system-tools" |
jozee@4553 | 6 SHORT_DESC="database engine generates PPD files from the data in Foomatic's XML database" |
jozee@4553 | 7 MAINTAINER="jozee@slitaz.org" |
jozee@4553 | 8 DEPENDS="perl libxml2 foomatic-db" |
jozee@4553 | 9 BUILD_DEPENDS="ghostscript-dev cups-dev perl libxml2-dev" |
jozee@4553 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
jozee@4553 | 11 WEB_SITE="http://www.linuxprinting.org/foomatic.html" |
jozee@4553 | 12 WGET_URL="http://www.openprinting.org/download/foomatic/$TARBALL" |
jozee@4553 | 13 |
jozee@4553 | 14 # Rules to configure and make the package. |
jozee@4553 | 15 compile_rules() |
jozee@4553 | 16 { |
jozee@4553 | 17 mv $WOK/$PACKAGE/$PACKAGE* $WOK/$PACKAGE/$PACKAGE-$VERSION |
jozee@4553 | 18 cd $src |
jozee@4553 | 19 ./configure \ |
jozee@4553 | 20 --prefix=/usr \ |
jozee@4553 | 21 --sysconfdir=/etc \ |
jozee@4553 | 22 $CONFIGURE_ARGS && |
jozee@4553 | 23 make && |
jozee@4553 | 24 make DESTDIR=$PWD/_pkg install |
jozee@4553 | 25 |
jozee@4553 | 26 } |
jozee@4553 | 27 |
jozee@4553 | 28 # Rules to gen a SliTaz package suitable for Tazpkg. |
jozee@4553 | 29 genpkg_rules() |
jozee@4553 | 30 { |
jozee@4553 | 31 mkdir -p $fs/usr/share/licenses/$PACKAGE/ |
jozee@4553 | 32 cp -a $_pkg/usr/share/foomatic $fs/usr/share |
jozee@4553 | 33 |
jozee@4553 | 34 # gzip all ppd files |
jozee@4553 | 35 find $fs/usr/share/foomatic/db/source -name "*.ppd" | xargs gzip -n9 |
jozee@4553 | 36 |
jozee@4553 | 37 # include non-free license |
jozee@4553 | 38 cp -a $src/COPYING $fs/usr/share/licenses/$PACKAGE/ |
jozee@4553 | 39 |
jozee@4553 | 40 } |
jozee@4553 | 41 |
jozee@4553 | 42 pre_install() |
jozee@4553 | 43 { |
jozee@4553 | 44 echo "" |
jozee@4553 | 45 echo -e "\033[1m PROPRIETARY LICENSE:\033[0m $2" |
jozee@4553 | 46 echo "================================================================================" |
jozee@4553 | 47 echo "You are installing a package with proprietary license." |
jozee@4553 | 48 echo "You must accept the license." |
jozee@4553 | 49 echo "================================================================================" |
jozee@4553 | 50 echo "" |
jozee@4553 | 51 |
jozee@4553 | 52 } |
jozee@4553 | 53 |
jozee@4553 | 54 post_install() |
jozee@4553 | 55 { |
jozee@4553 | 56 echo "" |
jozee@4553 | 57 echo -e "\033[1m FOOMATIC NON-FREE PRINTING LICENSE INFORMATION:\033[0m $2" |
jozee@4553 | 58 echo "================================================================================" |
jozee@4553 | 59 echo "For installing this package, you have to accept the $PACKAGE license." |
jozee@4553 | 60 echo "The license is stored in /usr/share/licenses/$PACKAGE " |
jozee@4553 | 61 echo -n "Would you like to read the license (y/N) : "; read anser |
jozee@4553 | 62 if [ "$anser" = "y" ]; then |
jozee@4553 | 63 cat /usr/share/licenses/"$PACKAGE"/COPYING | more |
jozee@4553 | 64 echo "" |
jozee@4553 | 65 fi |
jozee@4553 | 66 echo "================================================================================" |
jozee@4553 | 67 echo -n "Do you accept the license (y/N) : "; read anser |
jozee@4553 | 68 if [ "$anser" = "N" ]; then |
jozee@4553 | 69 echo "You did not accept the license, Removing the pkg." |
jozee@4553 | 70 tazpkg remove "$PACKAGE" |
jozee@4553 | 71 fi |
jozee@4553 | 72 |
jozee@4553 | 73 } |