aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/ebook-tools/APKBUILD
blob: 2ca1cf67b6f518dff7aa8f41661913988368b56f (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
# Contributor: k0r10n <k0r10n.dev@gmail.com>
# Maintainer:
pkgname=ebook-tools
pkgver=0.2.2
pkgrel=1
pkgdesc="Tools for accessing and converting various ebook file formats"
url="http://sourceforge.net/projects/ebook-tools/"
arch="x86 x86_64"
license="MIT"
depends=
depends_dev="libxml2-dev libzip-dev"
makedepends="$depends_dev cmake pkgconfig"
install=""
subpackages="$pkgname-dev"
source="http://downloads.sourceforge.net/project/ebook-tools/ebook-tools/${pkgver}/${pkgname}-${pkgver}.tar.gz"

_builddir="$srcdir"/${pkgname}-${pkgver}
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
	mkdir -p "$_builddir"/build
}

build() {
	cd "$_builddir"/build
	cmake -DCMAKE_BUILD_TYPE=Release \
	      -DCMAKE_INSTALL_PREFIX=/usr \
	      ../ || return 1
	make || return 1
}

package() {
	cd "$_builddir"/build
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="67bce67ceb72dcc3578d6a81ef92b29b  ebook-tools-0.2.2.tar.gz"
sha256sums="cbc35996e911144fa62925366ad6a6212d6af2588f1e39075954973bbee627ae  ebook-tools-0.2.2.tar.gz"
sha512sums="b4518249835ed7cc672392bf2f8b1c62bc218e41c53663bb26ab34c9e43a99b6b7ae794babdb4bd775e467bb17918703a66ee57c8cf94cb7afc4ba2a7f74816a  ebook-tools-0.2.2.tar.gz"