wok annotate foomatic-db-nonfree/receipt @ rev 15227

libidn: remove wrong error trigger
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Sep 22 18:14:35 2013 +0200 (2013-09-22)
parents fb920af78bef
children 3b4e4318134e
rev   line source
jozee@4553 1 # SliTaz package receipt.
jozee@4553 2
jozee@4553 3 PACKAGE="foomatic-db-nonfree"
slaxemulator@7265 4 VERSION="20101114"
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 TARBALL="$PACKAGE-$VERSION.tar.gz"
jozee@4553 9 WEB_SITE="http://www.linuxprinting.org/foomatic.html"
jozee@4553 10 WGET_URL="http://www.openprinting.org/download/foomatic/$TARBALL"
jozee@4936 11 TAGS="printer driver printing"
jozee@4553 12
pascal@15073 13 DEPENDS="perl libxml2 foomatic-db"
pascal@15073 14 BUILD_DEPENDS="ghostscript-dev cups-dev perl libxml2-dev"
pascal@15073 15
jozee@4553 16 # Rules to configure and make the package.
jozee@4553 17 compile_rules()
jozee@4553 18 {
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 &&
pascal@15073 25 make DESTDIR=$DESTDIR 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/
pascal@15073 33 cp -a $install/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 }