wok-current annotate cups-filters/receipt @ rev 25685

Add checkspace / fetchall feature for tazpkg
author Stanislas Leduc <shann@slitaz.org>
date Thu Mar 14 20:28:39 2024 +0000 (8 months ago)
parents a23978bfa665
children
rev   line source
mojo@17841 1 # SliTaz package receipt.
mojo@17841 2
mojo@17841 3 PACKAGE="cups-filters"
shann@25634 4 VERSION="1.28.17"
mojo@17841 5 CATEGORY="system-tools"
mojo@17841 6 SHORT_DESC="OpenPrinting CUPS Filters"
mojo@17841 7 MAINTAINER="mojo@slitaz.org"
mojo@17841 8 LICENSE="GPL"
pascal@25485 9 WEB_SITE="https://wiki.linuxfoundation.org/openprinting/cups-filters"
Hans-G?nter@25038 10
mojo@17841 11 TARBALL="$PACKAGE-$VERSION.tar.xz"
shann@25634 12 WGET_URL="https://github.com/OpenPrinting/$PACKAGE/releases/download/$VERSION/$TARBALL"
pascal@18211 13 EXTRA_SOURCE_FILES="$PACKAGE-7371.u"
shann@25629 14 WGET_URL2="https://mirror.slitaz.org/sources/packages-cooking/c/cups-filters-7371.u"
mojo@17841 15
shann@25634 16 DEPENDS="lcms poppler qpdf ghostscript gutenprint glib libexif"
shann@25634 17 BUILD_DEPENDS="ijs-dev libpng-dev lcms-dev poppler-dev qpdf-dev dbus-dev libexif-dev \
shann@25634 18 cups-dev gmp-dev zlib-dev jpeg-dev tiff-dev freetype-dev fontconfig-dev liblouis-dev"
mojo@17841 19
pascal@24436 20 # What is the latest version available today?
pascal@24436 21 current_version()
pascal@24436 22 {
pascal@24436 23 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24436 24 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24436 25 }
pascal@24436 26
mojo@17841 27 # Rules to configure and make the package.
mojo@17841 28 compile_rules()
mojo@17841 29 {
pascal@18211 30 [ -s $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES ] ||
pascal@18211 31 wget -O $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES $WGET_URL2
pascal@18211 32 patch -p0 -i $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES
psychomaniak@18210 33
Hans-G?nter@23217 34 sed -i '40i#include <cups/ppd.h>'\
Hans-G?nter@23217 35 cupsfilters/colormanager.h
Hans-G?nter@23217 36 sed -i '37i#include <cups/ppd.h>'\
Hans-G?nter@23217 37 cupsfilters/colord.h
Hans-G?nter@23218 38 sed -i '40i#include <cups/ppd.h>'\
Hans-G?nter@23218 39 cupsfilters/driver.h
Hans-G?nter@23217 40
Hans-G?nter@25040 41 export CFLAGS="$CFLAGS -std=c11"
Hans-G?nter@25040 42 export CXXFLAGS="$CXXFLAGS -std=c++14"
Hans-G?nter@25040 43
Hans-G?nter@25038 44 ./configure \
Hans-G?nter@25038 45 LIBQPDF_CFLAGS="-D QPDF_NO_QPDF_STRING" \
Hans-G?nter@25038 46 --prefix=/usr \
Hans-G?nter@25038 47 --sysconfdir=/etc \
shann@25634 48 --disable-avahi \
shann@25634 49 --disable-mutool \
al@19315 50 $CONFIGURE_ARGS &&
Hans-G?nter@23217 51 make &&
Hans-G?nter@23217 52 make install
mojo@17841 53 }
mojo@17841 54
mojo@17841 55 # Rules to gen a SliTaz package suitable for Tazpkg.
mojo@17841 56 genpkg_rules()
mojo@17841 57 {
Hans-G?nter@23217 58 mkdir -p $fs/usr/lib
Hans-G?nter@23217 59 mkdir -p $fs/usr/share
Hans-G?nter@23217 60
Hans-G?nter@23217 61 cp -a $install/etc $fs
Hans-G?nter@23217 62 cp -a $install/usr/bin $fs/usr
Hans-G?nter@23217 63 cp -a $install/usr/sbin $fs/usr
Hans-G?nter@23217 64 cp -a $install/usr/lib/*so* $fs/usr/lib
Hans-G?nter@23217 65 cp -a $install/usr/lib/cups $fs/usr/lib
Hans-G?nter@23217 66 cp -a $install/usr/share/ppd $fs/usr/share
Hans-G?nter@23217 67 cp -a $install/usr/share/cups $fs/usr/share
Hans-G?nter@23217 68 rm -fr $fs/etc/rc*.d
Hans-G?nter@23217 69 rm -fr $fs/usr/share/cups/ppdc
mojo@17841 70 }