wok view foomatic-db-nonfree/receipt @ rev 4814

Up: claws-mail-vcalendar(2.0.7)
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Tue Jan 19 01:08:11 2010 +0100 (2010-01-19)
parents
children fb8aceda65ff
line source
1 # SliTaz package receipt.
3 PACKAGE="foomatic-db-nonfree"
4 VERSION="current"
5 CATEGORY="system-tools"
6 SHORT_DESC="database engine generates PPD files from the data in Foomatic's XML database"
7 MAINTAINER="jozee@slitaz.org"
8 DEPENDS="perl libxml2 foomatic-db"
9 BUILD_DEPENDS="ghostscript-dev cups-dev perl libxml2-dev"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="http://www.linuxprinting.org/foomatic.html"
12 WGET_URL="http://www.openprinting.org/download/foomatic/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 mv $WOK/$PACKAGE/$PACKAGE* $WOK/$PACKAGE/$PACKAGE-$VERSION
18 cd $src
19 ./configure \
20 --prefix=/usr \
21 --sysconfdir=/etc \
22 $CONFIGURE_ARGS &&
23 make &&
24 make DESTDIR=$PWD/_pkg install
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/usr/share/licenses/$PACKAGE/
32 cp -a $_pkg/usr/share/foomatic $fs/usr/share
34 # gzip all ppd files
35 find $fs/usr/share/foomatic/db/source -name "*.ppd" | xargs gzip -n9
37 # include non-free license
38 cp -a $src/COPYING $fs/usr/share/licenses/$PACKAGE/
40 }
42 pre_install()
43 {
44 echo ""
45 echo -e "\033[1m PROPRIETARY LICENSE:\033[0m $2"
46 echo "================================================================================"
47 echo "You are installing a package with proprietary license."
48 echo "You must accept the license."
49 echo "================================================================================"
50 echo ""
52 }
54 post_install()
55 {
56 echo ""
57 echo -e "\033[1m FOOMATIC NON-FREE PRINTING LICENSE INFORMATION:\033[0m $2"
58 echo "================================================================================"
59 echo "For installing this package, you have to accept the $PACKAGE license."
60 echo "The license is stored in /usr/share/licenses/$PACKAGE "
61 echo -n "Would you like to read the license (y/N) : "; read anser
62 if [ "$anser" = "y" ]; then
63 cat /usr/share/licenses/"$PACKAGE"/COPYING | more
64 echo ""
65 fi
66 echo "================================================================================"
67 echo -n "Do you accept the license (y/N) : "; read anser
68 if [ "$anser" = "N" ]; then
69 echo "You did not accept the license, Removing the pkg."
70 tazpkg remove "$PACKAGE"
71 fi
73 }