wok view gtklp/receipt @ rev 24783
Up apache-ant (1.10.12)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Mar 20 12:11:06 2022 +0000 (2022-03-20) |
parents | 932cd974e081 |
children | 7dd01dedad38 |
line source
1 # SliTaz package receipt.
3 PACKAGE="gtklp"
4 VERSION="1.3.4"
5 CATEGORY="utilities"
6 TAGS="print"
7 SHORT_DESC="Tools to use and administrate CUPS."
8 MAINTAINER="jozee@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="http://gtklp.sourceforge.net/"
12 TARBALL="$PACKAGE-$VERSION.src.tar.gz"
13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
15 DEPENDS="cups gtk+"
16 BUILD_DEPENDS="autoconf automake cups-dev file gtk+-dev libtool"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - https://sourceforge.net/projects/gtklp/files/gtklp/ 2>/dev/null | \
22 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
23 sed '/scope="row/!d;s|.*/gtklp/||;s|/.*||;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 sed -i '/dummy/d' /usr/bin/gettextize # dirty hack
30 chmod +x autogen.sh
32 ./autogen.sh 2>&1 | grep -v AM_GNU_GETTEXT
33 # Disable /root/missing script
34 sed -i '/is-lightweight/{s/eval/! echo/}' configure
36 ./configure --prefix=/usr &&
37 make &&
38 make DESTDIR=$DESTDIR install || return
40 mkdir -p $DESTDIR/usr/share/applications
41 cat > $DESTDIR/usr/share/applications/gtklp.desktop <<EOT
42 [Desktop Entry]
43 Name=Printer Administration
44 Comment=$SHORT_DESC
45 Categories=Application;System;
46 Icon=printer
47 Exec=gtklp
48 Type=Application
49 StartupNotify=true
50 Terminal=false
51 EOT
52 cat > $DESTDIR/usr/share/applications/gtklpq.desktop <<EOT
53 [Desktop Entry]
54 Name=Printer Queue
55 Comment=$SHORT_DESC
56 Categories=Application;Utility;
57 Icon=printer
58 Exec=gtklpq
59 Type=Application
60 StartupNotify=true
61 Terminal=false
62 EOT
63 }
65 # Rules to gen a SliTaz package suitable for Tazpkg.
66 genpkg_rules()
67 {
68 mkdir -p $fs/usr/share
70 cp -a $install/usr/bin $fs/usr
71 cp -a $install/usr/share/applications $fs/usr/share
72 }