wok-current view cups-filters/receipt @ rev 25672
patch tazpkg, upgrade core pkgs first
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Sun Mar 03 17:58:42 2024 +0000 (5 months ago) |
parents | a23978bfa665 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="cups-filters"
4 VERSION="1.28.17"
5 CATEGORY="system-tools"
6 SHORT_DESC="OpenPrinting CUPS Filters"
7 MAINTAINER="mojo@slitaz.org"
8 LICENSE="GPL"
9 WEB_SITE="https://wiki.linuxfoundation.org/openprinting/cups-filters"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="https://github.com/OpenPrinting/$PACKAGE/releases/download/$VERSION/$TARBALL"
13 EXTRA_SOURCE_FILES="$PACKAGE-7371.u"
14 WGET_URL2="https://mirror.slitaz.org/sources/packages-cooking/c/cups-filters-7371.u"
16 DEPENDS="lcms poppler qpdf ghostscript gutenprint glib libexif"
17 BUILD_DEPENDS="ijs-dev libpng-dev lcms-dev poppler-dev qpdf-dev dbus-dev libexif-dev \
18 cups-dev gmp-dev zlib-dev jpeg-dev tiff-dev freetype-dev fontconfig-dev liblouis-dev"
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - ${WGET_URL%/*} 2>/dev/null | \
24 sed "/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 [ -s $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES ] ||
31 wget -O $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES $WGET_URL2
32 patch -p0 -i $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES
34 sed -i '40i#include <cups/ppd.h>'\
35 cupsfilters/colormanager.h
36 sed -i '37i#include <cups/ppd.h>'\
37 cupsfilters/colord.h
38 sed -i '40i#include <cups/ppd.h>'\
39 cupsfilters/driver.h
41 export CFLAGS="$CFLAGS -std=c11"
42 export CXXFLAGS="$CXXFLAGS -std=c++14"
44 ./configure \
45 LIBQPDF_CFLAGS="-D QPDF_NO_QPDF_STRING" \
46 --prefix=/usr \
47 --sysconfdir=/etc \
48 --disable-avahi \
49 --disable-mutool \
50 $CONFIGURE_ARGS &&
51 make &&
52 make install
53 }
55 # Rules to gen a SliTaz package suitable for Tazpkg.
56 genpkg_rules()
57 {
58 mkdir -p $fs/usr/lib
59 mkdir -p $fs/usr/share
61 cp -a $install/etc $fs
62 cp -a $install/usr/bin $fs/usr
63 cp -a $install/usr/sbin $fs/usr
64 cp -a $install/usr/lib/*so* $fs/usr/lib
65 cp -a $install/usr/lib/cups $fs/usr/lib
66 cp -a $install/usr/share/ppd $fs/usr/share
67 cp -a $install/usr/share/cups $fs/usr/share
68 rm -fr $fs/etc/rc*.d
69 rm -fr $fs/usr/share/cups/ppdc
70 }