wok annotate gtklp/receipt @ rev 24755

gtklp: ignore ERROR from autogen.sh
author Hans-G?nter Theisgen
date Thu Mar 17 07:54:00 2022 +0100 (2022-03-17)
parents 932cd974e081
children 7dd01dedad38
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@24403 18 # What is the latest version available today?
pascal@24403 19 current_version()
pascal@24403 20 {
pascal@24403 21 wget -O - https://sourceforge.net/projects/gtklp/files/gtklp/ 2>/dev/null | \
pascal@24403 22 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24403 23 sed '/scope="row/!d;s|.*/gtklp/||;s|/.*||;q'
pascal@24403 24 }
pascal@24403 25
pascal@11550 26 # Rules to configure and make the package.
pascal@15160 27 compile_rules()
pascal@15160 28 {
pascal@22912 29 sed -i '/dummy/d' /usr/bin/gettextize # dirty hack
pascal@22912 30 chmod +x autogen.sh
Hans-G?nter@22905 31
Hans-G?nter@24755 32 ./autogen.sh 2>&1 | grep -v AM_GNU_GETTEXT
pascal@17424 33 # Disable /root/missing script
pascal@17424 34 sed -i '/is-lightweight/{s/eval/! echo/}' configure
Hans-G?nter@22905 35
pascal@15160 36 ./configure --prefix=/usr &&
pascal@15160 37 make &&
pascal@15160 38 make DESTDIR=$DESTDIR install || return
Hans-G?nter@22905 39
pascal@15160 40 mkdir -p $DESTDIR/usr/share/applications
pascal@15160 41 cat > $DESTDIR/usr/share/applications/gtklp.desktop <<EOT
pascal@11550 42 [Desktop Entry]
pascal@11550 43 Name=Printer Administration
pascal@11550 44 Comment=$SHORT_DESC
pascal@11550 45 Categories=Application;System;
pascal@11550 46 Icon=printer
pascal@11550 47 Exec=gtklp
pascal@11550 48 Type=Application
pascal@11550 49 StartupNotify=true
pascal@11550 50 Terminal=false
pascal@11550 51 EOT
pascal@15160 52 cat > $DESTDIR/usr/share/applications/gtklpq.desktop <<EOT
pascal@11550 53 [Desktop Entry]
pascal@11550 54 Name=Printer Queue
pascal@11550 55 Comment=$SHORT_DESC
pascal@11550 56 Categories=Application;Utility;
pascal@11550 57 Icon=printer
pascal@11550 58 Exec=gtklpq
pascal@11550 59 Type=Application
pascal@11550 60 StartupNotify=true
pascal@11550 61 Terminal=false
pascal@11550 62 EOT
pascal@11550 63 }
pascal@11550 64
pascal@11550 65 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@11550 66 genpkg_rules()
pascal@11550 67 {
pascal@11550 68 mkdir -p $fs/usr/share
Hans-G?nter@22905 69
Hans-G?nter@22905 70 cp -a $install/usr/bin $fs/usr
Hans-G?nter@22905 71 cp -a $install/usr/share/applications $fs/usr/share
pascal@11550 72 }