wok annotate foomatic-db-nonfree/receipt @ rev 21454
updated mlt-python-bindings (0.7.2 -> 6.14.0)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Apr 29 17:40:07 2019 +0100 (2019-04-29) |
parents | dfef8de3d270 |
children | bfabe25c21ff |
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" |
pascal@15593 | 8 LICENSE="other" |
jozee@4553 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
jozee@4553 | 10 WEB_SITE="http://www.linuxprinting.org/foomatic.html" |
jozee@4553 | 11 WGET_URL="http://www.openprinting.org/download/foomatic/$TARBALL" |
jozee@4936 | 12 TAGS="printer driver printing" |
jozee@4553 | 13 |
pascal@15073 | 14 DEPENDS="perl libxml2 foomatic-db" |
pascal@15073 | 15 BUILD_DEPENDS="ghostscript-dev cups-dev perl libxml2-dev" |
pascal@15073 | 16 |
jozee@4553 | 17 # Rules to configure and make the package. |
jozee@4553 | 18 compile_rules() |
jozee@4553 | 19 { |
jozee@4553 | 20 cd $src |
jozee@4553 | 21 ./configure \ |
jozee@4553 | 22 --prefix=/usr \ |
jozee@4553 | 23 --sysconfdir=/etc \ |
jozee@4553 | 24 $CONFIGURE_ARGS && |
jozee@4553 | 25 make && |
pascal@15073 | 26 make DESTDIR=$DESTDIR install |
jozee@4553 | 27 |
jozee@4553 | 28 } |
jozee@4553 | 29 |
jozee@4553 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
jozee@4553 | 31 genpkg_rules() |
jozee@4553 | 32 { |
jozee@4553 | 33 mkdir -p $fs/usr/share/licenses/$PACKAGE/ |
pascal@15073 | 34 cp -a $install/usr/share/foomatic $fs/usr/share |
jozee@4553 | 35 |
jozee@4553 | 36 # gzip all ppd files |
jozee@4553 | 37 find $fs/usr/share/foomatic/db/source -name "*.ppd" | xargs gzip -n9 |
jozee@4553 | 38 |
jozee@4553 | 39 # include non-free license |
jozee@4553 | 40 cp -a $src/COPYING $fs/usr/share/licenses/$PACKAGE/ |
jozee@4553 | 41 |
jozee@4553 | 42 } |
jozee@4553 | 43 |
jozee@4553 | 44 pre_install() |
jozee@4553 | 45 { |
jozee@4553 | 46 echo "" |
jozee@4553 | 47 echo -e "\033[1m PROPRIETARY LICENSE:\033[0m $2" |
jozee@4553 | 48 echo "================================================================================" |
jozee@4553 | 49 echo "You are installing a package with proprietary license." |
jozee@4553 | 50 echo "You must accept the license." |
jozee@4553 | 51 echo "================================================================================" |
jozee@4553 | 52 echo "" |
jozee@4553 | 53 |
jozee@4553 | 54 } |
jozee@4553 | 55 |
jozee@4553 | 56 post_install() |
jozee@4553 | 57 { |
jozee@4553 | 58 echo "" |
jozee@4553 | 59 echo -e "\033[1m FOOMATIC NON-FREE PRINTING LICENSE INFORMATION:\033[0m $2" |
jozee@4553 | 60 echo "================================================================================" |
jozee@4553 | 61 echo "For installing this package, you have to accept the $PACKAGE license." |
jozee@4553 | 62 echo "The license is stored in /usr/share/licenses/$PACKAGE " |
jozee@4553 | 63 echo -n "Would you like to read the license (y/N) : "; read anser |
jozee@4553 | 64 if [ "$anser" = "y" ]; then |
pascal@18730 | 65 more < "$1/usr/share/licenses/$PACKAGE/COPYING" |
jozee@4553 | 66 echo "" |
jozee@4553 | 67 fi |
jozee@4553 | 68 echo "================================================================================" |
jozee@4553 | 69 echo -n "Do you accept the license (y/N) : "; read anser |
jozee@4553 | 70 if [ "$anser" = "N" ]; then |
jozee@4553 | 71 echo "You did not accept the license, Removing the pkg." |
pascal@17552 | 72 chroot "$1/" tazpkg remove "$PACKAGE" |
jozee@4553 | 73 fi |
jozee@4553 | 74 } |