archrelease: copy trunk to staging-x86_64
[arch-packages.git] / ebook-tools / trunk / PKGBUILD
bloba99922c3c51c2c6821f4e198819dadec37a4a840
1 # Maintainer: Antonio Rojas <arojas@archlinux.org>
2 # Contributor: Giovanni Scafora <giovanni@archlinux.org>
4 pkgname=ebook-tools
5 pkgver=0.2.2
6 pkgrel=7
7 pkgdesc="Tools for accessing and converting various ebook file formats"
8 arch=(x86_64)
9 url="https://sourceforge.net/projects/ebook-tools/"
10 license=(custom)
11 depends=(libzip libxml2 convertlit)
12 makedepends=(cmake)
13 source=("https://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz"
14         crash-fix.patch)
15 sha256sums=('cbc35996e911144fa62925366ad6a6212d6af2588f1e39075954973bbee627ae'
16             'ad556ce08909727a6022c9f1632086ccb8623a81a4f39cd34722e22116e14527')
18 prepare() {
19   mkdir -p build
21   cd $pkgname-$pkgver
22   patch -p2 -i ../crash-fix.patch # https://sourceforge.net/p/ebook-tools/bugs/8/
25 build() {
26   cd build
27   cmake ../$pkgname-$pkgver \
28     -DCMAKE_INSTALL_PREFIX=/usr
29   make
32 package() {
33   cd build
34   make DESTDIR="$pkgdir" install
36   install -Dm644 "$srcdir"/$pkgname-$pkgver/LICENSE \
37     -t "$pkgdir"/usr/share/licenses/$pkgname/