wok annotate foomatic-db/receipt @ rev 25489

Up foomatic-db (4.0-20221114)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Nov 15 16:37:39 2022 +0000 (18 months ago)
parents ed5f25d05ff6
children 2ccf00d9c1cd
rev   line source
jozee@4551 1 # SliTaz package receipt.
jozee@4551 2
jozee@4551 3 PACKAGE="foomatic-db"
pascal@25489 4 VERSION="4.0-20221114"
jozee@4551 5 CATEGORY="system-tools"
jozee@4551 6 SHORT_DESC="Database used by foomatic-db-engine to generate PPD files"
jozee@4551 7 MAINTAINER="jozee@slitaz.org"
pascal@15073 8 LICENSE="GPL2"
pascal@25053 9 TARBALL="$PACKAGE-$VERSION.tar.xz"
jozee@4551 10 WEB_SITE="http://www.linuxprinting.org/foomatic.html"
pascal@24972 11 WGET_URL="https://www.openprinting.org/download/foomatic/$TARBALL"
jozee@4936 12 TAGS="printer driver printing"
jozee@4551 13
pascal@15073 14 DEPENDS="ghostscript perl libxml2"
pascal@15073 15 BUILD_DEPENDS="ghostscript-dev cups-dev perl libxml2-dev"
pascal@15073 16
pascal@24439 17 # What is the latest version available today?
pascal@24439 18 current_version()
pascal@24439 19 {
pascal@24439 20 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24439 21 sed "/current/d;/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
pascal@24439 22 }
pascal@24439 23
jozee@4551 24 # Rules to configure and make the package.
jozee@4551 25 compile_rules()
jozee@4551 26 {
jozee@4551 27 ./configure \
jozee@4551 28 --prefix=/usr \
jozee@4551 29 --sysconfdir=/etc \
jozee@4551 30 $CONFIGURE_ARGS &&
jozee@4551 31 make &&
pascal@15073 32 make DESTDIR=$DESTDIR install
jozee@4551 33
jozee@4551 34 }
jozee@4551 35
jozee@4551 36 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@4551 37 genpkg_rules()
jozee@4551 38 {
jozee@4551 39 mkdir -p $fs/usr
pascal@15073 40 cp -a $install/usr/share $fs/usr
jozee@4551 41
jozee@4551 42 # remove unzipped ppd files
jozee@4551 43 find $fs/usr/share/foomatic/db/source/PPD -name "*.ppd" -exec rm -f '{}' 2>/dev/null \;
jozee@4551 44 }
jozee@4551 45