wok view gtklp/receipt @ rev 18386

gdal: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Sep 18 10:07:24 2015 +0200 (2015-09-18)
parents 84030f5b745e
children 22980cdd8a20
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 sed -i 's/^gettextize .*/autopoint -f/' autogen.sh
22 chmod +x autogen.sh
23 ./autogen.sh
24 # Disable /root/missing script
25 sed -i '/is-lightweight/{s/eval/! echo/}' configure
26 ./configure --prefix=/usr &&
27 make &&
28 make DESTDIR=$DESTDIR install || return
29 mkdir -p $DESTDIR/usr/share/applications
30 cat > $DESTDIR/usr/share/applications/gtklp.desktop <<EOT
31 [Desktop Entry]
32 Name=Printer Administration
33 Comment=$SHORT_DESC
34 Categories=Application;System;
35 Icon=printer
36 Exec=gtklp
37 Type=Application
38 StartupNotify=true
39 Terminal=false
40 EOT
41 cat > $DESTDIR/usr/share/applications/gtklpq.desktop <<EOT
42 [Desktop Entry]
43 Name=Printer Queue
44 Comment=$SHORT_DESC
45 Categories=Application;Utility;
46 Icon=printer
47 Exec=gtklpq
48 Type=Application
49 StartupNotify=true
50 Terminal=false
51 EOT
52 }
54 # Rules to gen a SliTaz package suitable for Tazpkg.
55 genpkg_rules()
56 {
57 mkdir -p $fs/usr/share
58 cp -a $install/usr/bin $fs/usr
59 cp -a $install/usr/share/applications $fs/usr/share/
60 }