summaryrefslogtreecommitdiffstats
path: root/testing/calibre
diff options
context:
space:
mode:
authorFrancesco Colista <francesco.colista@gmail.com>2011-07-06 06:07:11 +0000
committerFrancesco Colista <francesco.colista@gmail.com>2011-07-06 06:07:11 +0000
commite825eaca66b72e95259217cc34078e1dd732e300 (patch)
tree43afc4ea9a9e6240c5b5e5f2b09ffdaae30d311a /testing/calibre
parent8bb1c720dc789bc488cdef0ae9704a03deb7e906 (diff)
parent459ff4d6b71c5e70d23250578342abde00b570cd (diff)
downloadaports-e825eaca66b72e95259217cc34078e1dd732e300.tar.bz2
aports-e825eaca66b72e95259217cc34078e1dd732e300.tar.xz
Merge git://dev.alpinelinux.org/aports
Conflicts: testing/calibre/APKBUILD
Diffstat (limited to 'testing/calibre')
-rw-r--r--testing/calibre/APKBUILD25
1 files changed, 19 insertions, 6 deletions
diff --git a/testing/calibre/APKBUILD b/testing/calibre/APKBUILD
index 2bfe885c9..fcf833b2e 100644
--- a/testing/calibre/APKBUILD
+++ b/testing/calibre/APKBUILD
@@ -1,14 +1,18 @@
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer:
pkgname=calibre
-pkgver=0.8.8
-pkgrel=0
+pkgver=0.8.7
+pkgrel=3
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-dateutil py-cherrypy py-beautifulsoup py-mechanize libwmf xdg-utils"
+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-dateutil py-cherrypy py-beautifulsoup py-mechanize
+ py-dnspython shared-mime-info unrar xdg-utils"
makedepends="$depends_dev"
install=""
subpackages=""
@@ -28,10 +32,19 @@ build() {
}
package() {
cd "$_builddir"
+ # More on desktop integration (e.g. enforce arch defaults)
+ sed -i -e "/self.create_uninstaller()/,/os.rmdir(config_dir)/d" \
+ -e "s|self.opts.staging_sharedir, 'man/man1'|self.opts.staging_root, 'usr/share/man/man1'|" \
+ -e "s|manpath, prog+'.1'+__appname__+'.bz2'|manpath, prog+'.1'+'.bz2'|" \
+ -e "s|old_udev = '/etc|old_udev = '${pkgdir}/etc|" \
+ -e "s/^Name=calibre/Name=Calibre/g" src/calibre/linux.py
+ # Create a dir for ebook repository
+ mkdir -p "${pkgdir}/var/lib/calibre"
# 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 \
+ --no-postinstall \
--staging-bindir="${pkgdir}/usr/bin" \
--staging-libdir="${pkgdir}/usr/lib" \
--staging-sharedir="${pkgdir}/usr/share"
@@ -40,6 +53,6 @@ package() {
install -m644 -D ../$pkgname.confd \
"$pkgdir"/etc/conf.d/$pkgname || return 1
}
-md5sums="dab191175d370920b366bcd8c0dad917 calibre-0.8.8.tar.gz
-76d36815abf4c64bb54366e70a68305c calibre.confd
-d2d1dd5d6c6faf80dd94c75288451fcd calibre.initd"
+md5sums="d7132ec75f5e742e04e196fc8e2c0884 calibre-0.8.7.tar.gz
+a53086675b33859da1d18cc21daa090b calibre.confd
+d245fe44b51b48de128290de8485c92e calibre.initd"