wok view pnm2ppa/receipt @ rev 25797

created recipe for garcon-lang
author Hans-G?nter Theisgen
date Wed Oct 23 17:04:51 2024 +0100 (6 weeks ago)
parents 7dd01dedad38
children
line source
1 # SliTaz package receipt.
3 PACKAGE="pnm2ppa"
4 VERSION="1.13"
5 CATEGORY="system-tools"
6 SHORT_DESC="Ghostscript print filter and color driver for some HP DeskJet printers."
7 MAINTAINER="jozee@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://pnm2ppa.sourceforge.net/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 DEPENDS="cups foomatic-filters ghostscript"
15 BUILD_DEPENDS="ghostscript-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://sourceforge.net/projects/pnm2ppa/files/pnm2ppa/ 2>/dev/null | \
21 sed '/scope="row/!d;s|.*a href="|"https://sourceforge.net|;s| .*||;q' | xargs wget -O - 2>/dev/null | \
22 sed '/scope="row/!d;s|.*/pnm2ppa/||;s|/.*||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 ./configure \
29 --prefix=/usr \
30 --sysconfdir=/etc \
31 $CONFIGURE_ARGS &&
32 make &&
33 make install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr
41 cp -a $install/etc $fs
42 cp -a $install/usr/bin $fs/usr
44 # Still needs ppd file download for the specific printer from
45 # http://www.linuxprinting.org/show_driver.cgi?driver=pnm2ppa&fromprinter=HP-DeskJet_710C
47 }