wok-6.x annotate cups-filters/receipt @ rev 24505
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Feb 20 12:07:59 2022 +0000 (2022-02-20) |
parents | 3a91691ee943 |
children | bd7510903310 |
rev | line source |
---|---|
mojo@17841 | 1 # SliTaz package receipt. |
mojo@17841 | 2 |
mojo@17841 | 3 PACKAGE="cups-filters" |
psychomaniak@18210 | 4 VERSION="1.0.71" |
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" |
mojo@17841 | 9 WEB_SITE="http://www.linuxfoundation.org/collaborate/workgroups/openprinting" |
mojo@17841 | 10 TARBALL="$PACKAGE-$VERSION.tar.xz" |
mojo@17841 | 11 WGET_URL="http://www.openprinting.org/download/cups-filters/$TARBALL" |
pascal@18211 | 12 EXTRA_SOURCE_FILES="$PACKAGE-7371.u" |
pascal@18211 | 13 WGET_URL2="http://bzr.linuxfoundation.org/loggerhead/openprinting/cups-filters/diff/7371" |
mojo@17841 | 14 |
mojo@18284 | 15 DEPENDS="lcms poppler qpdf ghostscript gutenprint glib" |
al@19316 | 16 BUILD_DEPENDS="ijs-dev libpng-dev lcms-dev poppler-dev qpdf-dev dbus-dev \ |
al@19316 | 17 cups-dev gmp-dev zlib-dev jpeg-dev tiff-dev freetype-dev fontconfig-dev" |
mojo@17841 | 18 |
pascal@24436 | 19 # What is the latest version available today? |
pascal@24436 | 20 current_version() |
pascal@24436 | 21 { |
pascal@24436 | 22 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24436 | 23 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24436 | 24 } |
pascal@24436 | 25 |
mojo@17841 | 26 # Rules to configure and make the package. |
mojo@17841 | 27 compile_rules() |
mojo@17841 | 28 { |
pascal@18211 | 29 [ -s $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES ] || |
pascal@18211 | 30 wget -O $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES $WGET_URL2 |
pascal@18211 | 31 patch -p0 -i $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES |
psychomaniak@18210 | 32 |
Hans-G?nter@23217 | 33 sed -i '40i#include <cups/ppd.h>'\ |
Hans-G?nter@23217 | 34 cupsfilters/colormanager.h |
Hans-G?nter@23217 | 35 sed -i '37i#include <cups/ppd.h>'\ |
Hans-G?nter@23217 | 36 cupsfilters/colord.h |
Hans-G?nter@23218 | 37 sed -i '40i#include <cups/ppd.h>'\ |
Hans-G?nter@23218 | 38 cupsfilters/driver.h |
Hans-G?nter@23217 | 39 |
Hans-G?nter@23217 | 40 ./configure \ |
Hans-G?nter@23217 | 41 --prefix=/usr \ |
Hans-G?nter@23217 | 42 --sysconfdir=/etc \ |
al@19315 | 43 $CONFIGURE_ARGS && |
Hans-G?nter@23217 | 44 make && |
Hans-G?nter@23217 | 45 make install |
mojo@17841 | 46 } |
mojo@17841 | 47 |
mojo@17841 | 48 # Rules to gen a SliTaz package suitable for Tazpkg. |
mojo@17841 | 49 genpkg_rules() |
mojo@17841 | 50 { |
Hans-G?nter@23217 | 51 mkdir -p $fs/usr/lib |
Hans-G?nter@23217 | 52 mkdir -p $fs/usr/share |
Hans-G?nter@23217 | 53 |
Hans-G?nter@23217 | 54 cp -a $install/etc $fs |
Hans-G?nter@23217 | 55 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@23217 | 56 cp -a $install/usr/sbin $fs/usr |
Hans-G?nter@23217 | 57 cp -a $install/usr/lib/*so* $fs/usr/lib |
Hans-G?nter@23217 | 58 cp -a $install/usr/lib/cups $fs/usr/lib |
Hans-G?nter@23217 | 59 cp -a $install/usr/share/ppd $fs/usr/share |
Hans-G?nter@23217 | 60 cp -a $install/usr/share/cups $fs/usr/share |
Hans-G?nter@23217 | 61 rm -fr $fs/etc/rc*.d |
Hans-G?nter@23217 | 62 rm -fr $fs/usr/share/cups/ppdc |
mojo@17841 | 63 } |