wok view gtklp/receipt @ rev 21394

updated lxsession (0.4.6.1 -> 0.5.4)
author Hans-G?nter Theisgen
date Mon Apr 22 17:12:31 2019 +0100 (2019-04-22)
parents aee33ab23215
children 8547d40bb463
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 file"
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 }