wok-6.x view gtklp/receipt @ rev 15002

Add some GPL2 licenses
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Aug 10 21:12:16 2013 +0000 (2013-08-10)
parents b81932a5d9af
children 84030f5b745e
line source
1 # SliTaz package receipt.
3 PACKAGE="gtklp"
4 VERSION="1.2.8"
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 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 $install/usr/bin $fs/usr
58 cp -a $install/usr/share/applications $fs/usr/share/
59 }