wok-current annotate foomatic-db-nonfree/receipt @ rev 6463

Up: python-beaker to 1.5.4
author Julien Rabier <taziden@slitaz.org>
date Wed Sep 29 23:03:55 2010 +0000 (2010-09-29)
parents 2a1979cb49a1
children fb920af78bef
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@4936 13 TAGS="printer driver printing"
jozee@4553 14
jozee@4553 15 # Rules to configure and make the package.
jozee@4553 16 compile_rules()
jozee@4553 17 {
jozee@4553 18 mv $WOK/$PACKAGE/$PACKAGE* $WOK/$PACKAGE/$PACKAGE-$VERSION
jozee@4553 19 cd $src
jozee@4553 20 ./configure \
jozee@4553 21 --prefix=/usr \
jozee@4553 22 --sysconfdir=/etc \
jozee@4553 23 $CONFIGURE_ARGS &&
jozee@4553 24 make &&
jozee@4553 25 make DESTDIR=$PWD/_pkg install
jozee@4553 26
jozee@4553 27 }
jozee@4553 28
jozee@4553 29 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@4553 30 genpkg_rules()
jozee@4553 31 {
jozee@4553 32 mkdir -p $fs/usr/share/licenses/$PACKAGE/
jozee@4553 33 cp -a $_pkg/usr/share/foomatic $fs/usr/share
jozee@4553 34
jozee@4553 35 # gzip all ppd files
jozee@4553 36 find $fs/usr/share/foomatic/db/source -name "*.ppd" | xargs gzip -n9
jozee@4553 37
jozee@4553 38 # include non-free license
jozee@4553 39 cp -a $src/COPYING $fs/usr/share/licenses/$PACKAGE/
jozee@4553 40
jozee@4553 41 }
jozee@4553 42
jozee@4553 43 pre_install()
jozee@4553 44 {
jozee@4553 45 echo ""
jozee@4553 46 echo -e "\033[1m PROPRIETARY LICENSE:\033[0m $2"
jozee@4553 47 echo "================================================================================"
jozee@4553 48 echo "You are installing a package with proprietary license."
jozee@4553 49 echo "You must accept the license."
jozee@4553 50 echo "================================================================================"
jozee@4553 51 echo ""
jozee@4553 52
jozee@4553 53 }
jozee@4553 54
jozee@4553 55 post_install()
jozee@4553 56 {
jozee@4553 57 echo ""
jozee@4553 58 echo -e "\033[1m FOOMATIC NON-FREE PRINTING LICENSE INFORMATION:\033[0m $2"
jozee@4553 59 echo "================================================================================"
jozee@4553 60 echo "For installing this package, you have to accept the $PACKAGE license."
jozee@4553 61 echo "The license is stored in /usr/share/licenses/$PACKAGE "
jozee@4553 62 echo -n "Would you like to read the license (y/N) : "; read anser
jozee@4553 63 if [ "$anser" = "y" ]; then
jozee@4553 64 cat /usr/share/licenses/"$PACKAGE"/COPYING | more
jozee@4553 65 echo ""
jozee@4553 66 fi
jozee@4553 67 echo "================================================================================"
jozee@4553 68 echo -n "Do you accept the license (y/N) : "; read anser
jozee@4553 69 if [ "$anser" = "N" ]; then
jozee@4553 70 echo "You did not accept the license, Removing the pkg."
jozee@4553 71 tazpkg remove "$PACKAGE"
jozee@4553 72 fi
jozee@4553 73
jozee@4553 74 }