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