wok annotate foomatic-filters/receipt @ rev 25591
enet: update wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jun 22 11:01:59 2023 +0000 (14 months ago) |
parents | bfabe25c21ff |
children |
rev | line source |
---|---|
jozee@2765 | 1 # SliTaz package receipt. |
jozee@2765 | 2 |
jozee@2765 | 3 PACKAGE="foomatic-filters" |
Hans-G?nter@22767 | 4 VERSION="4.0.17" |
jozee@2765 | 5 CATEGORY="system-tools" |
Hans-G?nter@22767 | 6 TAGS="printer driver printing" |
Hans-G?nter@22767 | 7 SHORT_DESC="Foomatic filters needed to run print queues with Foomatic PPDs." |
jozee@2765 | 8 MAINTAINER="jozee@slitaz.org" |
pascal@15073 | 9 LICENSE="GPL2" |
Hans-G?nter@22767 | 10 WEB_SITE="https://wiki.linuxfoundation.org/openprinting/database/foomatic" |
Hans-G?nter@22767 | 11 |
jozee@2765 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@24975 | 13 WGET_URL="https://www.openprinting.org/download/foomatic/$TARBALL" |
jozee@2765 | 14 |
Hans-G?nter@22767 | 15 DEPENDS="gcc-lib-base ghostscript" |
Hans-G?nter@22767 | 16 BUILD_DEPENDS="a2ps autoconf cups cups-dev dbus-dev ghostscript-dev" |
pascal@15073 | 17 |
pascal@24439 | 18 # What is the latest version available today? |
pascal@24439 | 19 current_version() |
pascal@24439 | 20 { |
pascal@24439 | 21 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24439 | 22 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q |
pascal@24439 | 23 } |
pascal@24439 | 24 |
jozee@2765 | 25 # Rules to configure and make the package. |
jozee@2765 | 26 compile_rules() |
jozee@2765 | 27 { |
Hans-G?nter@22767 | 28 ./configure \ |
Hans-G?nter@22767 | 29 --prefix=/usr \ |
Hans-G?nter@22767 | 30 --sysconfdir=/etc \ |
jozee@2765 | 31 $CONFIGURE_ARGS && |
jozee@2765 | 32 make && |
pascal@15073 | 33 make DESTDIR=$DESTDIR install |
jozee@2765 | 34 } |
jozee@2765 | 35 |
jozee@2765 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
jozee@2765 | 37 genpkg_rules() |
jozee@2765 | 38 { |
Hans-G?nter@22767 | 39 mkdir -p $fs/etc |
Hans-G?nter@22767 | 40 mkdir -p $fs/usr/lib |
Hans-G?nter@22767 | 41 |
Hans-G?nter@22767 | 42 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@22767 | 43 cp -a $install/usr/lib/cups $fs/usr/lib |
Hans-G?nter@22767 | 44 cp -a $install/etc $fs |
jozee@2765 | 45 } |