aboutsummaryrefslogtreecommitdiffstats
path: root/community/ebook-tools/APKBUILD
blob: 3f3a3a505c9acde80a2e587d40f141a6a51a29b3 (plain) (blame)
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: Andrew Domaszek <brimston3@hg0.us>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=ebook-tools
pkgver=0.2.2
pkgrel=2
pkgdesc="Tools for accessing and converting various ebook file formats."
url="https://sourceforge.net/projects/ebook-tools/"
# mips, mips64, s390x blocked by texlive
arch="all !mips !mips64 !s390x"
license="MIT"
depends_dev="
	cmake
	libxml2-dev
	libzip-dev
	"
makedepends="$depends_dev
	doxygen
	graphviz
	texlive
	texlive-dvi
	"
subpackages="$pkgname-dev $pkgname-doc"
source="https://downloads.sourceforge.net/ebook-tools/ebook-tools-$pkgver.tar.gz
	10-cmake_libzip_zipconf_path.patch
	"
options="!check"

build() {
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr
	cmake --build build
	cmake --build build --target doc
}

package() {
	DESTDIR="$pkgdir" cmake --install build

	mkdir -p "$pkgdir"/usr/share/doc/ebook-tools
	cp -r build/doc/html "$pkgdir"/usr/share/doc/ebook-tools/
}

sha512sums="b4518249835ed7cc672392bf2f8b1c62bc218e41c53663bb26ab34c9e43a99b6b7ae794babdb4bd775e467bb17918703a66ee57c8cf94cb7afc4ba2a7f74816a  ebook-tools-0.2.2.tar.gz
5fadd9346232192ae618993c5f48ab84fac84d32dce3be55e4485d756f5a364569298488960bd21c0783d5e160a186f6f335d92194c5f63fc619218335f117ed  10-cmake_libzip_zipconf_path.patch"