wok-current annotate gtklp/receipt @ rev 23204

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