wok-current rev 11550
Add gtklp form wok-undigest
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Dec 25 15:18:57 2011 +0100 (2011-12-25) |
parents | 6f26d7b836e5 |
children | 60ec75c50c12 |
files | gtklp/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/gtklp/receipt Sun Dec 25 15:18:57 2011 +0100 1.3 @@ -0,0 +1,57 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="gtklp" 1.7 +VERSION="1.2.8" 1.8 +CATEGORY="utilities" 1.9 +MAINTAINER="jozee@slitaz.org" 1.10 +SHORT_DESC="Tools to use and administrate CUPS" 1.11 +BUILD_DEPENDS=" gtk+-dev autoconf automake" 1.12 +WEB_SITE="http://gtklp.sourceforge.net/" 1.13 +TARBALL="$PACKAGE-$VERSION.src.tar.gz" 1.14 +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" 1.15 +TAGS="" 1.16 + 1.17 +DEPENDS="cups gtk+" 1.18 +BUILD_DEPENDS="cups-dev gtk+-dev" 1.19 + 1.20 +# Rules to configure and make the package. 1.21 + 1.22 +compile_rules() { 1.23 + cd $src 1.24 + chmod +x autogen.sh 1.25 + ./autogen.sh 1.26 + ./configure --prefix=/usr && 1.27 + make && 1.28 + make DESTDIR=$DESTDIR install || return 1.29 + mkdir -p $DESTDIR/usr/share/applications 1.30 + cat > $DESTDIR/usr/share/applications/gtklp.desktop <<EOT 1.31 +[Desktop Entry] 1.32 +Name=Printer Administration 1.33 +Comment=$SHORT_DESC 1.34 +Categories=Application;System; 1.35 +Icon=printer 1.36 +Exec=gtklp 1.37 +Type=Application 1.38 +StartupNotify=true 1.39 +Terminal=false 1.40 +EOT 1.41 + cat > $DESTDIR/usr/share/applications/gtklpq.desktop <<EOT 1.42 +[Desktop Entry] 1.43 +Name=Printer Queue 1.44 +Comment=$SHORT_DESC 1.45 +Categories=Application;Utility; 1.46 +Icon=printer 1.47 +Exec=gtklpq 1.48 +Type=Application 1.49 +StartupNotify=true 1.50 +Terminal=false 1.51 +EOT 1.52 +} 1.53 + 1.54 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.55 +genpkg_rules() 1.56 +{ 1.57 + mkdir -p $fs/usr/share 1.58 + cp -a $_pkg/usr/bin $fs/usr 1.59 + cp -a $_pkg/usr/share/applications $fs/usr/share/ 1.60 +}