wok-next view foomatic-db-nonfree/receipt @ rev 20907

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