wok view gtklp/receipt @ rev 15160

Up gtklp (1.3.0)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Aug 15 18:10:11 2013 +0000 (2013-08-15)
parents 7896f0694ef6
children aee33ab23215
line source
1 # SliTaz package receipt.
3 PACKAGE="gtklp"
4 VERSION="1.3.0"
5 CATEGORY="utilities"
6 MAINTAINER="jozee@slitaz.org"
7 LICENSE="GPL2"
8 SHORT_DESC="Tools to use and administrate CUPS"
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 {
21 cd $src
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 $install/usr/bin $fs/usr
58 cp -a $install/usr/share/applications $fs/usr/share/
59 }