wok view gtklp/receipt @ rev 23621
updated ruby and ruby-dev (2.6.4 -> 2.7.1)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Apr 14 15:51:31 2020 +0100 (2020-04-14) |
parents | 8547d40bb463 |
children | 932cd974e081 |
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 sed -i '/dummy/d' /usr/bin/gettextize # dirty hack
22 chmod +x autogen.sh
24 ./autogen.sh
25 # Disable /root/missing script
26 sed -i '/is-lightweight/{s/eval/! echo/}' configure
28 ./configure --prefix=/usr &&
29 make &&
30 make DESTDIR=$DESTDIR install || return
32 mkdir -p $DESTDIR/usr/share/applications
33 cat > $DESTDIR/usr/share/applications/gtklp.desktop <<EOT
34 [Desktop Entry]
35 Name=Printer Administration
36 Comment=$SHORT_DESC
37 Categories=Application;System;
38 Icon=printer
39 Exec=gtklp
40 Type=Application
41 StartupNotify=true
42 Terminal=false
43 EOT
44 cat > $DESTDIR/usr/share/applications/gtklpq.desktop <<EOT
45 [Desktop Entry]
46 Name=Printer Queue
47 Comment=$SHORT_DESC
48 Categories=Application;Utility;
49 Icon=printer
50 Exec=gtklpq
51 Type=Application
52 StartupNotify=true
53 Terminal=false
54 EOT
55 }
57 # Rules to gen a SliTaz package suitable for Tazpkg.
58 genpkg_rules()
59 {
60 mkdir -p $fs/usr/share
62 cp -a $install/usr/bin $fs/usr
63 cp -a $install/usr/share/applications $fs/usr/share
64 }