aboutsummaryrefslogtreecommitdiffstats
path: root/testing/calibre/APKBUILD
diff options
context:
space:
mode:
authorFrancesco Colista <francesco.colista@gmail.com>2011-06-30 15:47:15 +0000
committerFrancesco Colista <francesco.colista@gmail.com>2011-06-30 15:47:15 +0000
commita7792e3d801561151cfa10887ca95c86d54efd6b (patch)
tree709c8d468f23c06ff3589a857cec0de29d781a4c /testing/calibre/APKBUILD
parent479bcc87e93c1e992c3e21837bd5fc932ea819f9 (diff)
downloadaports-a7792e3d801561151cfa10887ca95c86d54efd6b.tar.gz
aports-a7792e3d801561151cfa10887ca95c86d54efd6b.tar.bz2
aports-a7792e3d801561151cfa10887ca95c86d54efd6b.tar.xz
testing/py-beautifulsoup py-cherrypy py-mechanize calibre py-lxml:bump pkgver
Diffstat (limited to 'testing/calibre/APKBUILD')
-rw-r--r--testing/calibre/APKBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/testing/calibre/APKBUILD b/testing/calibre/APKBUILD
new file mode 100644
index 0000000000..843eba3ae6
--- /dev/null
+++ b/testing/calibre/APKBUILD
@@ -0,0 +1,38 @@
+# Contributor: Francesco Colista <francesco.colista@gmail.com>
+# Maintainer:
+pkgname=calibre
+pkgver=0.8.7
+pkgrel=0
+pkgdesc="Ebook management application"
+url="http://calibre-ebook.com/"
+arch="all"
+license="GPL3"
+depends=
+depends_dev="python-dev imagemagick-dev py-qt py-sip py-imaging libusb-dev poppler-dev poppler-qt4-dev py-dbus py-pycountry py-lxml icu-dev desktop-file-utils py-sqlite sqlite-dev chmlib-dev podofo-dev py-sip-dev py-importlib py-dateutil py-cherrypy py-beautifulsoup py-mechanize"
+makedepends="$depends_dev"
+install=""
+subpackages=""
+source="http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz"
+_builddir="$srcdir"/$pkgname
+build() {
+ cd "$_builddir"
+ rm -rf src/cherrypy
+ sed -i -e "s/ldflags = shlex.split(ldflags)/ldflags = shlex.split(ldflags) + ['-fPIC']/" setup/extensions.py
+ sed -i -e 's:\(#!/usr/bin/env[ ]\+python$\|#!/usr/bin/python$\):\12:g' \
+ $(find . -regex ".*.py\|.*.recipe")
+ python setup.py build
+ python setup.py resources
+ python setup.py translations
+}
+
+package() {
+ cd "$_builddir"
+ # Fix the environment module location
+ sed -i -e "s|(prefix=.*)|(prefix='$pkgdir/usr')|g" setup/install.py
+ install -d "${pkgdir}/usr/lib/python2.7/site-packages"
+ python setup.py install --root="${pkgdir}" --prefix=/usr \
+ --staging-bindir="${pkgdir}/usr/bin" \
+ --staging-libdir="${pkgdir}/usr/lib" \
+ --staging-sharedir="${pkgdir}/usr/share"
+}
+md5sums="d7132ec75f5e742e04e196fc8e2c0884 calibre-0.8.7.tar.gz"