wok-6.x view foomatic-db/receipt @ rev 25512
memtest: 386/1M support
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Feb 14 07:20:48 2023 +0000 (21 months ago) |
parents | e1d0a02a021e |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="foomatic-db"
4 VERSION="4.0-20221117"
5 CATEGORY="system-tools"
6 SHORT_DESC="Database used by foomatic-db-engine to generate PPD files"
7 MAINTAINER="jozee@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.xz"
10 WEB_SITE="http://www.linuxprinting.org/foomatic.html"
11 WGET_URL="https://web.archive.org/web/20221118084846/https://www.openprinting.org/download/foomatic/$TARBALL"
12 TAGS="printer driver printing"
14 DEPENDS="ghostscript perl libxml2"
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 - https://www.openprinting.org/download/foomatic/ 2>/dev/null | \
21 sed "/current/d;/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 ./configure \
28 --prefix=/usr \
29 --sysconfdir=/etc \
30 $CONFIGURE_ARGS &&
31 make &&
32 make DESTDIR=$DESTDIR install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr
40 cp -a $install/usr/share $fs/usr
42 # remove unzipped ppd files
43 find $fs/usr/share/foomatic/db/source/PPD -name "*.ppd" -exec rm -f '{}' 2>/dev/null \;
44 }