wok-next annotate foomatic-db-nonfree/receipt @ rev 20660

logrotate: fix bdeps
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed May 09 17:03:28 2018 +0300 (2018-05-09)
parents 9e01bc6321ea
children d5aab818505e
rev   line source
al@20534 1 # SliTaz package receipt v2.
jozee@4553 2
jozee@4553 3 PACKAGE="foomatic-db-nonfree"
al@20534 4 VERSION="20101114"
jozee@4553 5 CATEGORY="system-tools"
al@20534 6 SHORT_DESC="Database engine generates PPD files from the data in Foomatic's \
al@20534 7 XML database"
jozee@4553 8 MAINTAINER="jozee@slitaz.org"
pascal@15593 9 LICENSE="other"
al@20534 10 WEB_SITE="http://www.linuxprinting.org/foomatic.html"
al@20534 11
jozee@4553 12 TARBALL="$PACKAGE-$VERSION.tar.gz"
jozee@4553 13 WGET_URL="http://www.openprinting.org/download/foomatic/$TARBALL"
jozee@4553 14
pascal@15073 15 BUILD_DEPENDS="ghostscript-dev cups-dev perl libxml2-dev"
pascal@15073 16
al@20534 17 compile_rules() {
al@20534 18 ./configure $CONFIGURE_ARGS &&
jozee@4553 19 make &&
al@20534 20 make DESTDIR=$DESTDIR install || return 1
al@20534 21
al@20534 22 # gzip all ppd files
al@20534 23 find $install/usr/share/foomatic/db/source -name "*.ppd" | xargs gzip -n9
al@20534 24
al@20534 25 # include non-free license
al@20534 26 cp -a $src/COPYING $install/usr/share/licenses/$PACKAGE/
al@20534 27
al@20534 28 chown -R root:root $install
jozee@4553 29 }
jozee@4553 30
al@20534 31 genpkg_rules() {
al@20534 32 copy @std
al@20534 33 DEPENDS="perl libxml2 foomatic-db"
al@20534 34 TAGS="printer driver printing"
jozee@4553 35 }
jozee@4553 36
al@20534 37 pre_install() {
al@20534 38 cat <<EOT
al@20534 39
al@20534 40 .--------------------------------------------------------.
al@20534 41 | PROPRIETARY LICENSE: |
al@20534 42 |--------------------------------------------------------|
al@20534 43 | You are installing a package with proprietary license. |
al@20534 44 | You must accept the license. |
al@20534 45 '--------------------------------------------------------'
al@20534 46
al@20534 47 EOT
jozee@4553 48 }
jozee@4553 49
al@20534 50 post_install() {
al@20534 51 cat <<EOT
al@20534 52
al@20534 53 .-----------------------------------------------------.
al@20534 54 | FOOMATIC NON-FREE PRINTING LICENSE INFORMATION: |
al@20534 55 |-----------------------------------------------------|
al@20534 56 | For installing this package, you have to accept the |
al@20534 57 | foomatic-db-nonfree package license. |
al@20534 58 | The license is stored in |
al@20534 59 | /usr/share/licenses/foomatic-db-nonfree/ |
al@20534 60 '-----------------------------------------------------'
al@20534 61 EOT
al@20534 62
al@20534 63 echo -n "Would you like to read the license (y/N) : "; read anser
al@20534 64 if [ "$anser" == "y" ]; then
pascal@18730 65 more < "$1/usr/share/licenses/$PACKAGE/COPYING"
al@20534 66 echo ""
jozee@4553 67 fi
al@20534 68
al@20534 69 separator '='
al@20534 70 echo -n "Do you accept the license (y/N) : "; read anser
al@20534 71 if [ "$anser" == "N" ]; then
al@20534 72 echo "You did not accept the license, Removing the pkg."
al@20534 73 chroot "$1/" tazpkg remove "$PACKAGE"
jozee@4553 74 fi
jozee@4553 75 }