wok rev 1693
Add epdfview-cups
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Nov 11 12:18:44 2008 +0000 (2008-11-11) |
parents | c3c353091edb |
children | fd3dae3f7fa6 |
files | epdfview-cups/receipt epdfview-cups/stuff/epdfview.desktop |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/epdfview-cups/receipt Tue Nov 11 12:18:44 2008 +0000 1.3 @@ -0,0 +1,46 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="epdfview-cups" 1.7 +VERSION="0.1.6" 1.8 +CATEGORY="office" 1.9 +SHORT_DESC="Lightweight PDF document viewer using Poppler and Cups." 1.10 +MAINTAINER="pankso@slitaz.org" 1.11 +DEPENDS="gtk+ poppler cups" 1.12 +BUILD_DEPENDS="gtk+-dev poppler-dev poppler cups cups-dev" 1.13 +SOURCE="epdfview" 1.14 +TARBALL="$SOURCE-$VERSION.tar.gz" 1.15 +WEB_SITE="http://trac.emma-soft.com/epdfview/" 1.16 +WGET_URL="${WEB_SITE}chrome/site/releases/$TARBALL" 1.17 +PROVIDE="epdfview:cups" 1.18 + 1.19 +# Rules to configure and make the package. 1.20 +compile_rules() 1.21 +{ 1.22 + cd $src 1.23 + ./configure \ 1.24 + --prefix=/usr \ 1.25 + --infodir=/usr/share/info \ 1.26 + --mandir=/usr/share/man \ 1.27 + --with-cups \ 1.28 + $CONFIGURE_ARGS && 1.29 + make && 1.30 + make DESTDIR=$PWD/_pkg install 1.31 +} 1.32 + 1.33 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.34 +genpkg_rules() 1.35 +{ 1.36 + mkdir -p $fs/usr/share/pixmaps 1.37 + cp -a $_pkg/usr/bin $fs/usr 1.38 + cp -a $_pkg/usr/share/epdfview $fs/usr/share 1.39 + cd $fs/usr/share/pixmaps 1.40 + rm ../epdfview/pixmaps/icon_epdfview-24.png 1.41 + rm ../epdfview/pixmaps/icon_epdfview-48.png 1.42 + ln -s ../epdfview/pixmaps/icon_epdfview-32.png epdfview.png 1.43 +} 1.44 + 1.45 +# Pre install commands for Tazpkg. 1.46 +pre_install() 1.47 +{ 1.48 + [ -x $1/usr/bin/epdfview ] && yes y | tazpkg remove epdfview 1.49 +}
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/epdfview-cups/stuff/epdfview.desktop Tue Nov 11 12:18:44 2008 +0000 2.3 @@ -0,0 +1,14 @@ 2.4 +[Desktop Entry] 2.5 +Encoding=UTF-8 2.6 +Name=ePDFView PDF Viewer 2.7 +Name[es]=ePDFView Visor PDF 2.8 +Name[fr]=ePDFView Visionneur PDF 2.9 +Comment=Lightweight PDF document viewer 2.10 +Comment[es]=Visor de documentos PDF ligero 2.11 +Comment[fr]=Visionneur de documents PDF léger 2.12 +Exec=epdfview %f 2.13 +Icon=epdfview.png 2.14 +MimeType=application/pdf 2.15 +Terminal=false 2.16 +Type=Application 2.17 +Categories=Office;