wok-current view foomatic-db/receipt @ rev 25701

Fix dep for libglamoregl.so (libepoxy), and miss file for amdgpu (thanks alanyih)
author Stanislas Leduc <shann@slitaz.org>
date Fri Apr 19 12:48:51 2024 +0000 (8 weeks ago)
parents a23978bfa665
children
line source
1 # SliTaz package receipt.
3 PACKAGE="foomatic-db"
4 VERSION="4.0-20230930"
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://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 # Take long long time for recompress, need check why
18 COOKOPTS="!gz"
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - https://www.openprinting.org/download/foomatic/ 2>/dev/null | \
24 sed "/current/d;/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 ./configure \
31 --prefix=/usr \
32 --sysconfdir=/etc \
33 $CONFIGURE_ARGS &&
35 make &&
36 make DESTDIR=$DESTDIR install
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr
44 cp -a $install/usr/share $fs/usr
46 # remove unzipped ppd files
47 find $fs/usr/share/foomatic/db/source/PPD -name "*.ppd" -exec rm -f '{}' 2>/dev/null \;
48 }