wok view gtklp/receipt @ rev 11550
Add gtklp form wok-undigest
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Dec 25 15:18:57 2011 +0100 (2011-12-25) |
parents | |
children | dbf89b0ec274 |
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"
17 # Rules to configure and make the package.
19 compile_rules() {
20 cd $src
21 chmod +x autogen.sh
22 ./autogen.sh
23 ./configure --prefix=/usr &&
24 make &&
25 make DESTDIR=$DESTDIR install || return
26 mkdir -p $DESTDIR/usr/share/applications
27 cat > $DESTDIR/usr/share/applications/gtklp.desktop <<EOT
28 [Desktop Entry]
29 Name=Printer Administration
30 Comment=$SHORT_DESC
31 Categories=Application;System;
32 Icon=printer
33 Exec=gtklp
34 Type=Application
35 StartupNotify=true
36 Terminal=false
37 EOT
38 cat > $DESTDIR/usr/share/applications/gtklpq.desktop <<EOT
39 [Desktop Entry]
40 Name=Printer Queue
41 Comment=$SHORT_DESC
42 Categories=Application;Utility;
43 Icon=printer
44 Exec=gtklpq
45 Type=Application
46 StartupNotify=true
47 Terminal=false
48 EOT
49 }
51 # Rules to gen a SliTaz package suitable for Tazpkg.
52 genpkg_rules()
53 {
54 mkdir -p $fs/usr/share
55 cp -a $_pkg/usr/bin $fs/usr
56 cp -a $_pkg/usr/share/applications $fs/usr/share/
57 }