wok view foomatic-db-nonfree/receipt @ rev 25194
updated python-html2text (2017.10.4 -> 2019.8.11)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jul 13 10:52:13 2022 +0100 (2022-07-13) |
parents | bd7510903310 |
children | 362a5a98467f |
line source
1 # SliTaz package receipt.
3 PACKAGE="foomatic-db-nonfree"
4 VERSION="20210824"
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 LICENSE="other"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.linuxprinting.org/foomatic.html"
11 WGET_URL="https://www.openprinting.org/download/foomatic/$TARBALL"
12 TAGS="printer driver printing"
14 DEPENDS="perl libxml2 foomatic-db"
15 BUILD_DEPENDS="ghostscript-dev cups-dev perl libxml2-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - ${WGET_URL%/*} 2>/dev/null | \
21 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 cd $src
28 ./configure \
29 --prefix=/usr \
30 --sysconfdir=/etc \
31 $CONFIGURE_ARGS &&
32 make &&
33 make DESTDIR=$DESTDIR install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr/share/licenses/$PACKAGE/
41 cp -a $install/usr/share/foomatic $fs/usr/share
43 # gzip all ppd files
44 find $fs/usr/share/foomatic/db/source -name "*.ppd" | xargs gzip -n9
46 # include non-free license
47 cp -a $src/COPYING $fs/usr/share/licenses/$PACKAGE/
49 }
51 pre_install()
52 {
53 echo ""
54 echo -e "\033[1m PROPRIETARY LICENSE:\033[0m $2"
55 echo "================================================================================"
56 echo "You are installing a package with proprietary license."
57 echo "You must accept the license."
58 echo "================================================================================"
59 echo ""
61 }
63 post_install()
64 {
65 echo ""
66 echo -e "\033[1m FOOMATIC NON-FREE PRINTING LICENSE INFORMATION:\033[0m $2"
67 echo "================================================================================"
68 echo "For installing this package, you have to accept the $PACKAGE license."
69 echo "The license is stored in /usr/share/licenses/$PACKAGE "
70 echo -n "Would you like to read the license (y/N) : "; read anser
71 if [ "$anser" = "y" ]; then
72 more < "$1/usr/share/licenses/$PACKAGE/COPYING"
73 echo ""
74 fi
75 echo "================================================================================"
76 echo -n "Do you accept the license (y/N) : "; read anser
77 if [ "$anser" = "N" ]; then
78 echo "You did not accept the license, Removing the pkg."
79 chroot "$1/" tazpkg remove "$PACKAGE"
80 fi
81 }