
Receipt for package "foomatic-db-nonfree"
# SliTaz package receipt. PACKAGE="foomatic-db-nonfree" VERSION="20221116" CATEGORY="system-tools" SHORT_DESC="database engine generates PPD files from the data in Foomatic's XML database" MAINTAINER="jozee@slitaz.org" LICENSE="other" TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="http://www.linuxprinting.org/foomatic.html" WGET_URL="https://web.archive.org/web/20221117121727/https://www.openprinting.org/download/foomatic/$TARBALL" TAGS="printer driver printing" DEPENDS="perl libxml2 foomatic-db" BUILD_DEPENDS="ghostscript-dev cups-dev perl libxml2-dev" # What is the latest version available today? current_version() { wget -O - https://www.openprinting.org/download/foomatic/ 2>/dev/null | \ sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q } # Rules to configure and make the package. compile_rules() { cd $src ./configure \ --prefix=/usr \ --sysconfdir=/etc \ $CONFIGURE_ARGS && make && make DESTDIR=$DESTDIR install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/share/licenses/$PACKAGE/ cp -a $install/usr/share/foomatic $fs/usr/share # gzip all ppd files find $fs/usr/share/foomatic/db/source -name "*.ppd" | xargs gzip -n9 # include non-free license cp -a $src/COPYING $fs/usr/share/licenses/$PACKAGE/ } pre_install() { echo "" echo -e "\033[1m PROPRIETARY LICENSE:\033[0m $2" echo "================================================================================" echo "You are installing a package with proprietary license." echo "You must accept the license." echo "================================================================================" echo "" } post_install() { echo "" echo -e "\033[1m FOOMATIC NON-FREE PRINTING LICENSE INFORMATION:\033[0m $2" echo "================================================================================" echo "For installing this package, you have to accept the $PACKAGE license." echo "The license is stored in /usr/share/licenses/$PACKAGE " echo -n "Would you like to read the license (y/N) : "; read anser if [ "$anser" = "y" ]; then more < "$1/usr/share/licenses/$PACKAGE/COPYING" echo "" fi echo "================================================================================" echo -n "Do you accept the license (y/N) : "; read anser if [ "$anser" = "N" ]; then echo "You did not accept the license, Removing the pkg." chroot "$1/" tazpkg remove "$PACKAGE" fi }
6011 packages and 861692 files in cooking database (Sun Apr 20 00:48:06 2025)