You are not logged in.
This is a wonderful OpenSource tool to deal with all kinds of eBooks and ebook reader devices.
I have no knowledge of python and I tried to build from the source (without writing my PKGBUILD), but it doesn't work.
Please go to the following link and help me write a PKGBUILD
http://calibre.kovidgoyal.net/download_generic
MANY MANY thanks!
Offline
I have this one very close to working.
# Contributor: Nick B <Shirakawasuna at gmail _dot_com>
pkgname=calibre
pkgver=0.4.86
pkgrel=1
pkgdesc="An e-book library management application."
arch=('i686')
url="http://calibre.kovidgoyal.net/"
license=('GPL3')
makedepends=('setuptools' 'pil' 'pyqt')
depends=('python' 'qt')
source=(http://calibre.kovidgoyal.net/downloads/calibre-$pkgver.tar.gz)
md5sums=('8ffad2b2456d23f4c55efe6212bd222b')
build() {
cd $startdir/src/calibre-$pkgver
python setup.py build
python setup.py install --root $startdir/pkg
}
It errors out on the last step with this:
/bin/sh: calibre_postinstall: command not found
Traceback (most recent call last):
File "setup.py", line 433, in <module>
subprocess.check_call('calibre_postinstall', shell=True)
File "/usr/lib/python2.5/subprocess.py", line 462, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'calibre_postinstall' returned non-zero exit status 127
Offline
I have this one very close to working.
It errors out on the last step with this:/bin/sh: calibre_postinstall: command not found Traceback (most recent call last): File "setup.py", line 433, in <module> subprocess.check_call('calibre_postinstall', shell=True) File "/usr/lib/python2.5/subprocess.py", line 462, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command 'calibre_postinstall' returned non-zero exit status 127
I receive the same message. I opened a ticket to the calibre developer site and I'm waiting for a response.
Offline
The problem was that the calibre_postinstall is installed, but in your_path/abs/local/calibre/pkg/usr/bin. So you have to set a PATH with the new value. But there are other problems related to that. When you are able to execute calibre_postinstall it search for a calibre installation and exits with errors.
I tried a lot of things but I'm unable to find something that works.
Offline
I have written a PKGBUILD for this which works for me on my PC. I have two actually, one for the bzr version and one for the stable version. Mind you I haven't tried them for a few weeks but they were working fine at last check.
Here you go bzr first:
# Contributor Kevin Ould (crippler75@gmail.com)
pkgname=calibre-bzr
pkgver=1644
pkgrel=1
pkgdesc="an e-book library manager"
arch=('i686' 'x86_64')
url="http://calibre.kovidgoyal.net/"
license=('GPL')
depends=('python' 'setuptools' 'python-mechanize' 'python-lxml' 'pil')
makedepends=('bzr')
conflicts=()
source=()
md5sums=()
_bzrtrunk=http://bzr.kovidgoyal.net/code/calibre/trunk
_bzrmod=calibre
build() {
cd $srcdir
msg "Connecting to the server...."
if [ ! -d ./$_bzrmod ]; then
bzr branch $_bzrtrunk $_bzrmod -r $pkgver
else
cd $_bzrmod && bzr merge
fi
msg "BZR checkout done or server timeout"
msg "Starting make..."
[ -d ./$_bzrmod-build ] && rm -fr ./$_bzrmod-build
cp -r ./$_bzrmod ./$_bzrmod-build
cd ./$_bzrmod-build
python setup.py build
python setup.py install --root=$pkgdir
rm -rf $srcdir/$_bzrmod-build
}
Here is stable:
# Contributor: Kevin Ould (crippler75@gmail.com)
pkgname=calibre
pkgver=0.4.83
pkgrel=1
pkgdesc="an e-book library manager"
arch=('i686' 'x86_64')
url="http://calibre.kovidgoyal.net/"
license=('GPL')
depends=('python' 'setuptools' 'python-mechanize' 'python-lxml' 'pil')
makedepends=()
conflicts=(calibre-bzr)
source=( https://calibre.kovidgoyal.net/downloads/$pkgname-$pkgver.tar.bz2 )
md5sums=()
build() {
cd "$srcdir/$pkgname-$pkgver"
python setup.py install --root="$pkgdir" || return 1
}
For the stable version you will have to manually update the pkgver with whichever version you are trying to build. As you can see when I tested it the latest version was 0.4.83. The bzr version should grab the latest version automagically. Hope this helps!
UPDATE : I tried updating my PKGBUILD for latest stable and got the same issue as you guys posted above. 0.4.83 which my PKGBUILD was written for should still work though. :-) Looks like kovid made some changes which break my PKGBUILDS. Maybe bzr will still work.
Kevin
Last edited by ould (2008-09-29 12:24:18)
Offline
That's works for 0.4.83 that doesn't use calibre_postinstall. Now there is the 0.4.88 that use calibre_postinstall that causes problems.
Offline
That's works for 0.4.83 that doesn't use calibre_postinstall. Now there is the 0.4.88 that use calibre_postinstall that causes problems.
Yeah i noticed that, do you know what this post_install actually does? It doesn't seem to do much by looking at it but I am not very knowledgable in python. Unless you need a feature in 0.4.88 then I would suggest using 0.4.83 as it seems to work fine for me. When I try and update the bzr version is gets through the build but I did see an error regarding postinstall but I am not at home so can't try it and see if it actually works though.
Kevin
Offline
I managed to make a working package for it. Feel free to test it and provide useful feedback.
(I won't be submitting it to the AUR, as I don't have much interest in it. If anyone else wants to do that, go ahead )
Offline
I would also like to point out another ebook reader. reed.
reed is a console based ebook reader. It works wonders on text files. Here is the source repo.
http://www.sfr-fresh.com/unix/privat/reed-5.4.tar.gz/
It looks like development has stopped, but it may be pretty close to feature complete. If you need a good command line ebook reader. Try this out.
Offline
I managed to make a working package for it. Feel free to test it and provide useful feedback.
(I won't be submitting it to the AUR, as I don't have much interest in it. If anyone else wants to do that, go ahead
)
Yeah Seems to works fine. I'll put it on AUR. Thanks.
Offline
I would also like to point out another ebook reader. reed.
reed is a console based ebook reader. It works wonders on text files. Here is the source repo.
http://www.sfr-fresh.com/unix/privat/reed-5.4.tar.gz/
Just FYI, there's a package for reed in AUR. But thanks anyway for the additional mirror of the source.
The courageous enter dark caves alone.
The clever send in the courageous first.
The cleverest wait behind the clever.
Offline