Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=22eee674e02f4b596757822e9ecf74c5956085b9

commit 22eee674e02f4b596757822e9ecf74c5956085b9
Author: Melko <lorddarthfe...@gmail.com>
Date:   Sat Apr 30 22:20:49 2011 +0200

calibre-0.7.59-1-i686

* new package

diff --git a/source/xapps-extra/calibre/FrugalBuild 
b/source/xapps-extra/calibre/FrugalBuild
new file mode 100644
index 0000000..50e7f84
--- /dev/null
+++ b/source/xapps-extra/calibre/FrugalBuild
@@ -0,0 +1,59 @@
+# Compiling Time: 1.33 SBU
+# Maintainer: Melko <lorddarthfe...@gmail.com>
+
+pkgname=calibre
+pkgver=0.7.59
+pkgrel=1
+pkgdesc="Ebook management application"
+url="http://calibre.kovidgoyal.net/";
+depends=('python' 'imagemagick' 'xz' 'libtool' 'libuuid' 'libqtgui' 'poppler' \
+       'chmlib' 'icu4c' 'pyqt4' 'python-dateutil' 'python-mechanize' 'lxml' \
+       'podofo' 'imaging' 'python-sqlite3' 'beautifulsoup')
+makedepends=('pycountry')
+groups=('xapps-extra')
+archs=('i686' 'x86_64')
+_F_googlecode_dirname="calibre-ebook"
+Finclude googlecode
+source=(${source[@]} $pkgname-ebook-viewer.desktop \
+       $pkgname-gui.desktop \
+       $pkgname-lrfviewer.desktop \
+       $pkgname-viewer.png \
+       $pkgname-lrf.png \
+       $pkgname-gui.png \
+       $pkgname.xml)
+sha1sums=('075b39eae4ca7961c224f5f819d857a3fddd43e2' \
+          '1323d95691289b41e25fd191dc1d18f1c58e02d2' \
+          'e7eb837ad8733ecb813b5f897484324cd7160426' \
+          '2a675529ef6f034eb20bc48620802b60796d689d' \
+          '816cabb72ffb9a94e28910a1a48507a3064f0b7e' \
+          '55c454cf6aac258ff7663ead89883e3a721c8078' \
+          '9e5b649495e42e1778a9a433eac630173a0069e2' \
+          '03b4412f2acf256fd4478f2b94f024617c488e02')
+
+build() {
+  Fcd $pkgname
+  Fmake
+  python setup.py resources || Fdie
+  python setup.py translations || Fdie
+  Fmkdir usr/lib/python2.7/site-packages
+  Fsed "(prefix=.*)" "(prefix='${Fdestdir}/usr')" setup/install.py
+  Fmakeinstall --staging-bindir=${Fdestdir}/usr/bin \
+       --staging-libdir=${Fdestdir}/usr/lib \
+       --staging-sharedir=${Fdestdir}/usr/share
+
+  # change env from python2 to python (I wonder why python2 is set... iirc 
just archlinux use this config)
+  for i in $(ls $Fdestdir/usr/bin/ | grep -v mount-helper)
+  do
+    Fsed "/usr/bin/env python2" "/usr/bin/env python" $Fdestdir/usr/bin/$i
+  done
+
+  # install some missing stuff, hopefully this will be fixed soon
+  Ffile /usr/share/applications/$pkgname-gui.desktop
+  Ffile /usr/share/applications/$pkgname-ebook-viewer.desktop
+  Ffile /usr/share/applications/$pkgname-lrfviewer.desktop
+  Ffile /usr/share/pixmaps/$pkgname-gui.png
+  Ffile /usr/share/pixmaps/$pkgname-viewer.png
+  Ffile /usr/share/pixmaps/$pkgname-lrf.png
+  Ffile /usr/share/mime/packages/$pkgname.xml
+}
+# optimization OK
diff --git a/source/xapps-extra/calibre/calibre-ebook-viewer.desktop 
b/source/xapps-extra/calibre/calibre-ebook-viewer.desktop
new file mode 100644
index 0000000..b79ef66
--- /dev/null
+++ b/source/xapps-extra/calibre/calibre-ebook-viewer.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Version=1.0
+Type=Application
+Name=E-book Viewer
+GenericName=Viewer for E-books
+Comment=Viewer for E-books in all the major formats
+TryExec=ebook-viewer
+Exec=ebook-viewer %F
+Icon=calibre-viewer
+Categories=Graphics;Viewer;
+MimeType=application/x-cbr;application/ereader;application/oebps-package+xml;application/x-sony-bbeb;application/x-mobipocket-ebook;application/vnd.ctc-posml;application/epub+zip;application/x-cbz;
diff --git a/source/xapps-extra/calibre/calibre-gui.desktop 
b/source/xapps-extra/calibre/calibre-gui.desktop
new file mode 100644
index 0000000..b74a563
--- /dev/null
+++ b/source/xapps-extra/calibre/calibre-gui.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Version=1.0
+Type=Application
+Name=Calibre
+GenericName=E-book library management
+Comment=E-book library management: Convert, view, share, catalogue all your 
e-books
+TryExec=calibre
+Exec=calibre
+Icon=calibre-gui
+Categories=Office;
+MimeType=application/x-cbr;application/ereader;application/oebps-package+xml;application/x-sony-bbeb;application/x-mobipocket-ebook;application/vnd.ctc-posml;application/epub+zip;application/x-cbz;
diff --git a/source/xapps-extra/calibre/calibre-gui.png 
b/source/xapps-extra/calibre/calibre-gui.png
new file mode 100644
index 0000000..1210c6c
Binary files /dev/null and b/source/xapps-extra/calibre/calibre-gui.png differ
diff --git a/source/xapps-extra/calibre/calibre-lrf.png 
b/source/xapps-extra/calibre/calibre-lrf.png
new file mode 100644
index 0000000..4d569d7
Binary files /dev/null and b/source/xapps-extra/calibre/calibre-lrf.png differ
diff --git a/source/xapps-extra/calibre/calibre-lrfviewer.desktop 
b/source/xapps-extra/calibre/calibre-lrfviewer.desktop
new file mode 100644
index 0000000..bef0175
--- /dev/null
+++ b/source/xapps-extra/calibre/calibre-lrfviewer.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Version=1.0
+Type=Application
+Name=LRF Viewer
+GenericName=Viewer for LRF files
+Comment=Viewer for LRF files (SONY ebook format files)
+TryExec=lrfviewer
+Exec=lrfviewer %F
+Icon=calibre-viewer
+MimeType=application/x-sony-bbeb;
+Categories=Graphics;Viewer;
diff --git a/source/xapps-extra/calibre/calibre-viewer.png 
b/source/xapps-extra/calibre/calibre-viewer.png
new file mode 100644
index 0000000..858b3f9
Binary files /dev/null and b/source/xapps-extra/calibre/calibre-viewer.png 
differ
diff --git a/source/xapps-extra/calibre/calibre.xml 
b/source/xapps-extra/calibre/calibre.xml
new file mode 100644
index 0000000..7e85223
--- /dev/null
+++ b/source/xapps-extra/calibre/calibre.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0"?>
+<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
+    <mime-type type="application/x-sony-bbeb">
+        <comment>SONY E-book compiled format</comment>
+        <glob pattern="*.lrf"/>
+    </mime-type>
+    <mime-type type="application/epub+zip">
+        <comment>EPUB ebook format</comment>
+        <glob pattern="*.epub"/>
+    </mime-type>
+    <mime-type type="text/lrs">
+        <comment>SONY E-book source format</comment>
+        <glob pattern="*.lrs"/>
+    </mime-type>
+</mime-info>
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to