wok-next view foomatic-db-nonfree/receipt @ rev 21159
updated diffutils (3.6 -> 3.7)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Feb 20 08:46:59 2019 +0100 (2019-02-20) |
parents | d5aab818505e |
children |
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="devel@slitaz.org"
9 LICENSE="other"
10 WEB_SITE="https://wiki.linuxfoundation.org/openprinting/database/foomatic"
11 HOST_ARCH="any"
13 TARBALL="$PACKAGE-$VERSION.tar.gz"
14 WGET_URL="http://www.openprinting.org/download/foomatic/$TARBALL"
16 BUILD_DEPENDS="ghostscript-dev cups-dev perl libxml2-dev"
18 compile_rules() {
19 ./configure $CONFIGURE_ARGS &&
20 make &&
21 make DESTDIR=$install install || return 1
23 # gzip all ppd files
24 find $install/usr/share/foomatic/db/source -name "*.ppd" | xargs gzip -n9
26 # include non-free license
27 cp -a $src/COPYING $install/usr/share/licenses/$PACKAGE/
29 chown -R root:root $install
30 }
32 genpkg_rules() {
33 copy @std
34 DEPENDS="perl libxml2 foomatic-db"
35 TAGS="printer driver printing"
36 }
38 pre_install() {
39 cat <<EOT
41 .--------------------------------------------------------.
42 | PROPRIETARY LICENSE: |
43 |--------------------------------------------------------|
44 | You are installing a package with proprietary license. |
45 | You must accept the license. |
46 '--------------------------------------------------------'
48 EOT
49 }
51 post_install() {
52 cat <<EOT
54 .-----------------------------------------------------.
55 | FOOMATIC NON-FREE PRINTING LICENSE INFORMATION: |
56 |-----------------------------------------------------|
57 | For installing this package, you have to accept the |
58 | foomatic-db-nonfree package license. |
59 | The license is stored in |
60 | /usr/share/licenses/foomatic-db-nonfree/ |
61 '-----------------------------------------------------'
62 EOT
64 echo -n "Would you like to read the license (y/N) : "; read anser
65 if [ "$anser" == "y" ]; then
66 more < "$1/usr/share/licenses/$PACKAGE/COPYING"
67 echo ""
68 fi
70 separator '='
71 echo -n "Do you accept the license (y/N) : "; read anser
72 if [ "$anser" == "N" ]; then
73 echo "You did not accept the license, Removing the pkg."
74 chroot "$1/" tazpkg remove "$PACKAGE"
75 fi
76 }