wok-current view cups-filters/receipt @ rev 24966
updated nettle and nettle-dev (3.5.1 -> 3.7.3)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Apr 25 07:28:45 2022 +0100 (2022-04-25) |
parents | 3a91691ee943 |
children | bd7510903310 |
line source
1 # SliTaz package receipt.
3 PACKAGE="cups-filters"
4 VERSION="1.0.71"
5 CATEGORY="system-tools"
6 SHORT_DESC="OpenPrinting CUPS Filters"
7 MAINTAINER="mojo@slitaz.org"
8 LICENSE="GPL"
9 WEB_SITE="http://www.linuxfoundation.org/collaborate/workgroups/openprinting"
10 TARBALL="$PACKAGE-$VERSION.tar.xz"
11 WGET_URL="http://www.openprinting.org/download/cups-filters/$TARBALL"
12 EXTRA_SOURCE_FILES="$PACKAGE-7371.u"
13 WGET_URL2="http://bzr.linuxfoundation.org/loggerhead/openprinting/cups-filters/diff/7371"
15 DEPENDS="lcms poppler qpdf ghostscript gutenprint glib"
16 BUILD_DEPENDS="ijs-dev libpng-dev lcms-dev poppler-dev qpdf-dev dbus-dev \
17 cups-dev gmp-dev zlib-dev jpeg-dev tiff-dev freetype-dev fontconfig-dev"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - ${WGET_URL%/*} 2>/dev/null | \
23 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 [ -s $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES ] ||
30 wget -O $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES $WGET_URL2
31 patch -p0 -i $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES
33 sed -i '40i#include <cups/ppd.h>'\
34 cupsfilters/colormanager.h
35 sed -i '37i#include <cups/ppd.h>'\
36 cupsfilters/colord.h
37 sed -i '40i#include <cups/ppd.h>'\
38 cupsfilters/driver.h
40 ./configure \
41 --prefix=/usr \
42 --sysconfdir=/etc \
43 $CONFIGURE_ARGS &&
44 make &&
45 make install
46 }
48 # Rules to gen a SliTaz package suitable for Tazpkg.
49 genpkg_rules()
50 {
51 mkdir -p $fs/usr/lib
52 mkdir -p $fs/usr/share
54 cp -a $install/etc $fs
55 cp -a $install/usr/bin $fs/usr
56 cp -a $install/usr/sbin $fs/usr
57 cp -a $install/usr/lib/*so* $fs/usr/lib
58 cp -a $install/usr/lib/cups $fs/usr/lib
59 cp -a $install/usr/share/ppd $fs/usr/share
60 cp -a $install/usr/share/cups $fs/usr/share
61 rm -fr $fs/etc/rc*.d
62 rm -fr $fs/usr/share/cups/ppdc
63 }