wok view gtklp/receipt @ rev 14676
eeze-dev: Up to 1.7.7
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Thu Jun 06 22:08:35 2013 +0200 (2013-06-06) |
parents | dbf89b0ec274 |
children | 7896f0694ef6 |
line source
1 # SliTaz package receipt.
3 PACKAGE="gtklp"
4 VERSION="1.2.8"
5 CATEGORY="utilities"
6 MAINTAINER="jozee@slitaz.org"
7 SHORT_DESC="Tools to use and administrate CUPS"
8 BUILD_DEPENDS=" gtk+-dev autoconf automake"
9 WEB_SITE="http://gtklp.sourceforge.net/"
10 TARBALL="$PACKAGE-$VERSION.src.tar.gz"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
12 TAGS=""
14 DEPENDS="cups gtk+"
15 BUILD_DEPENDS="cups-dev gtk+-dev autoconf automake libtool"
17 # Rules to configure and make the package.
19 compile_rules() {
20 cd $src
21 sed -i 's|http.h.*|&\n#include <cups/ppd.h>|' gtklp/gtklp.h
22 sed -i 's/^gettextize .*/autopoint -f/' autogen.sh
23 chmod +x autogen.sh
24 ./autogen.sh
25 ./configure --prefix=/usr &&
26 make &&
27 make DESTDIR=$DESTDIR install || return
28 mkdir -p $DESTDIR/usr/share/applications
29 cat > $DESTDIR/usr/share/applications/gtklp.desktop <<EOT
30 [Desktop Entry]
31 Name=Printer Administration
32 Comment=$SHORT_DESC
33 Categories=Application;System;
34 Icon=printer
35 Exec=gtklp
36 Type=Application
37 StartupNotify=true
38 Terminal=false
39 EOT
40 cat > $DESTDIR/usr/share/applications/gtklpq.desktop <<EOT
41 [Desktop Entry]
42 Name=Printer Queue
43 Comment=$SHORT_DESC
44 Categories=Application;Utility;
45 Icon=printer
46 Exec=gtklpq
47 Type=Application
48 StartupNotify=true
49 Terminal=false
50 EOT
51 }
53 # Rules to gen a SliTaz package suitable for Tazpkg.
54 genpkg_rules()
55 {
56 mkdir -p $fs/usr/share
57 cp -a $_pkg/usr/bin $fs/usr
58 cp -a $_pkg/usr/share/applications $fs/usr/share/
59 }