wok-next annotate foomatic-db-nonfree/receipt @ rev 21724
busybox: update configs
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Sep 01 11:04:25 2020 +0000 (2020-09-01) |
parents | d5aab818505e |
children |
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" |
al@21020 | 8 MAINTAINER="devel@slitaz.org" |
pascal@15593 | 9 LICENSE="other" |
al@21020 | 10 WEB_SITE="https://wiki.linuxfoundation.org/openprinting/database/foomatic" |
al@21057 | 11 HOST_ARCH="any" |
al@20534 | 12 |
jozee@4553 | 13 TARBALL="$PACKAGE-$VERSION.tar.gz" |
jozee@4553 | 14 WGET_URL="http://www.openprinting.org/download/foomatic/$TARBALL" |
jozee@4553 | 15 |
pascal@15073 | 16 BUILD_DEPENDS="ghostscript-dev cups-dev perl libxml2-dev" |
pascal@15073 | 17 |
al@20534 | 18 compile_rules() { |
al@20534 | 19 ./configure $CONFIGURE_ARGS && |
jozee@4553 | 20 make && |
al@21020 | 21 make DESTDIR=$install install || return 1 |
al@20534 | 22 |
al@20534 | 23 # gzip all ppd files |
al@20534 | 24 find $install/usr/share/foomatic/db/source -name "*.ppd" | xargs gzip -n9 |
al@20534 | 25 |
al@20534 | 26 # include non-free license |
al@20534 | 27 cp -a $src/COPYING $install/usr/share/licenses/$PACKAGE/ |
al@20534 | 28 |
al@20534 | 29 chown -R root:root $install |
jozee@4553 | 30 } |
jozee@4553 | 31 |
al@20534 | 32 genpkg_rules() { |
al@20534 | 33 copy @std |
al@20534 | 34 DEPENDS="perl libxml2 foomatic-db" |
al@20534 | 35 TAGS="printer driver printing" |
jozee@4553 | 36 } |
jozee@4553 | 37 |
al@20534 | 38 pre_install() { |
al@20534 | 39 cat <<EOT |
al@20534 | 40 |
al@20534 | 41 .--------------------------------------------------------. |
al@20534 | 42 | PROPRIETARY LICENSE: | |
al@20534 | 43 |--------------------------------------------------------| |
al@20534 | 44 | You are installing a package with proprietary license. | |
al@20534 | 45 | You must accept the license. | |
al@20534 | 46 '--------------------------------------------------------' |
al@20534 | 47 |
al@20534 | 48 EOT |
jozee@4553 | 49 } |
jozee@4553 | 50 |
al@20534 | 51 post_install() { |
al@20534 | 52 cat <<EOT |
al@20534 | 53 |
al@20534 | 54 .-----------------------------------------------------. |
al@20534 | 55 | FOOMATIC NON-FREE PRINTING LICENSE INFORMATION: | |
al@20534 | 56 |-----------------------------------------------------| |
al@20534 | 57 | For installing this package, you have to accept the | |
al@20534 | 58 | foomatic-db-nonfree package license. | |
al@20534 | 59 | The license is stored in | |
al@20534 | 60 | /usr/share/licenses/foomatic-db-nonfree/ | |
al@20534 | 61 '-----------------------------------------------------' |
al@20534 | 62 EOT |
al@20534 | 63 |
al@20534 | 64 echo -n "Would you like to read the license (y/N) : "; read anser |
al@20534 | 65 if [ "$anser" == "y" ]; then |
pascal@18730 | 66 more < "$1/usr/share/licenses/$PACKAGE/COPYING" |
al@20534 | 67 echo "" |
jozee@4553 | 68 fi |
al@20534 | 69 |
al@20534 | 70 separator '=' |
al@20534 | 71 echo -n "Do you accept the license (y/N) : "; read anser |
al@20534 | 72 if [ "$anser" == "N" ]; then |
al@20534 | 73 echo "You did not accept the license, Removing the pkg." |
al@20534 | 74 chroot "$1/" tazpkg remove "$PACKAGE" |
jozee@4553 | 75 fi |
jozee@4553 | 76 } |