blob: fa541de01e4241c3b3fe6ef0f998b7eeec1ee806 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=libe-book
pkgver=0.1.2
pkgrel=6
pkgdesc="Import filter and tools for various ebook formats"
url="https://sourceforge.net/projects/libebook/"
arch="all"
license="MPL-2.0"
depends_dev="boost-dev icu-dev librevenge-dev libxml2-dev zlib-dev"
makedepends="$depends_dev doxygen gperf"
subpackages="$pkgname-dev $pkgname-doc $pkgname-tools"
source="http://downloads.sourceforge.net/project/libebook/libe-book-$pkgver/libe-book-$pkgver.tar.bz2"
builddir="$srcdir/$pkgname-$pkgver"
prepare() {
default_prepare
update_config_sub
}
build() {
cd "$builddir"
# boost-1.59
export CPPFLAGS=-DBOOST_ERROR_CODE_HEADER_ONLY
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var \
--disable-werror
make
}
check() {
cd "$builddir"
make check
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
}
tools() {
mkdir -p "$subpkgdir"/usr
mv "$pkgdir"/usr/bin "$subpkgdir"/usr
}
sha512sums="82982874f9c0f5e400166e9367a4b6017cf11bbd69e2e79240137385a5d68ddea08f13676f8c5d0e983f441de17cda9f4b5f7c90c5cb3515e319de638edf3a38 libe-book-0.1.2.tar.bz2"
|