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

updated gtklp (1.3.0 -> 1.3.4)
author Hans-G?nter Theisgen
date Sun Feb 23 17:36:37 2020 +0100 (2020-02-23)
parents 22980cdd8a20
children 0b7bca85c877
line source
1 # SliTaz package receipt.
3 PACKAGE="gtklp"
4 VERSION="1.3.4"
5 CATEGORY="utilities"
6 TAGS="print"
7 SHORT_DESC="Tools to use and administrate CUPS."
8 MAINTAINER="jozee@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="http://gtklp.sourceforge.net/"
12 TARBALL="$PACKAGE-$VERSION.src.tar.gz"
13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
15 DEPENDS="cups gtk+"
16 BUILD_DEPENDS="autoconf automake cups-dev file gtk+-dev libtool"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 # < 1.3.4
22 # sed -i 's/^gettextize .*/autopoint -f/' autogen.sh
23 # chmod +x autogen.sh
25 ./autogen.sh
26 # Disable /root/missing script
27 sed -i '/is-lightweight/{s/eval/! echo/}' configure
29 ./configure --prefix=/usr &&
30 make &&
31 make DESTDIR=$DESTDIR install || return
33 mkdir -p $DESTDIR/usr/share/applications
34 cat > $DESTDIR/usr/share/applications/gtklp.desktop <<EOT
35 [Desktop Entry]
36 Name=Printer Administration
37 Comment=$SHORT_DESC
38 Categories=Application;System;
39 Icon=printer
40 Exec=gtklp
41 Type=Application
42 StartupNotify=true
43 Terminal=false
44 EOT
45 cat > $DESTDIR/usr/share/applications/gtklpq.desktop <<EOT
46 [Desktop Entry]
47 Name=Printer Queue
48 Comment=$SHORT_DESC
49 Categories=Application;Utility;
50 Icon=printer
51 Exec=gtklpq
52 Type=Application
53 StartupNotify=true
54 Terminal=false
55 EOT
56 }
58 # Rules to gen a SliTaz package suitable for Tazpkg.
59 genpkg_rules()
60 {
61 mkdir -p $fs/usr/share
63 cp -a $install/usr/bin $fs/usr
64 cp -a $install/usr/share/applications $fs/usr/share
65 }