wok-next view gtklp/receipt @ rev 13333
Add python-pyexiv2 (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Sep 04 16:40:06 2012 +0200 (2012-09-04) |
parents | 99241084b602 |
children | b81932a5d9af |
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 sed -i 's/^gettextize .*/autopoint -f/' autogen.sh
22 chmod +x autogen.sh
23 ./autogen.sh
24 ./configure --prefix=/usr &&
25 make &&
26 make DESTDIR=$DESTDIR install || return
27 mkdir -p $DESTDIR/usr/share/applications
28 cat > $DESTDIR/usr/share/applications/gtklp.desktop <<EOT
29 [Desktop Entry]
30 Name=Printer Administration
31 Comment=$SHORT_DESC
32 Categories=Application;System;
33 Icon=printer
34 Exec=gtklp
35 Type=Application
36 StartupNotify=true
37 Terminal=false
38 EOT
39 cat > $DESTDIR/usr/share/applications/gtklpq.desktop <<EOT
40 [Desktop Entry]
41 Name=Printer Queue
42 Comment=$SHORT_DESC
43 Categories=Application;Utility;
44 Icon=printer
45 Exec=gtklpq
46 Type=Application
47 StartupNotify=true
48 Terminal=false
49 EOT
50 }
52 # Rules to gen a SliTaz package suitable for Tazpkg.
53 genpkg_rules()
54 {
55 mkdir -p $fs/usr/share
56 cp -a $_pkg/usr/bin $fs/usr
57 cp -a $_pkg/usr/share/applications $fs/usr/share/
58 }