aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBart Ribbers <bribbers@disroot.org>2021-01-21 13:23:06 +0100
committerBart Ribbers <bribbers@disroot.org>2021-01-21 21:45:19 +0000
commita626d8d1cef36e8988611a5772285ad03675272e (patch)
tree879ab73a317b0d83b90879b9b6d1de9dda247bec
parentf378943d7799b914239bdc4b09a5093e0e5eb0d3 (diff)
downloadaports-a626d8d1cef36e8988611a5772285ad03675272e.tar.gz
aports-a626d8d1cef36e8988611a5772285ad03675272e.tar.bz2
aports-a626d8d1cef36e8988611a5772285ad03675272e.tar.xz
testing/ebook-tools: take over maintainership and modernize
-rw-r--r--testing/ebook-tools/APKBUILD47
1 files changed, 28 insertions, 19 deletions
diff --git a/testing/ebook-tools/APKBUILD b/testing/ebook-tools/APKBUILD
index cfb043a112..3f3078358a 100644
--- a/testing/ebook-tools/APKBUILD
+++ b/testing/ebook-tools/APKBUILD
@@ -1,34 +1,43 @@
# Contributor: Andrew Domaszek <brimston3@hg0.us>
-# Maintainer:
+# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=ebook-tools
pkgver=0.2.2
-pkgrel=1
+pkgrel=2
pkgdesc="Tools for accessing and converting various ebook file formats."
url="https://sourceforge.net/projects/ebook-tools/"
-arch="all"
+# s390x blocked by texlive
+arch="all !s390x"
license="MIT"
-depends=""
-depends_dev="cmake libxml2-dev libzip-dev"
-makedepends="$depends_dev"
-install=""
+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/$pkgname/$pkgname-$pkgver.tar.gz
- 10-cmake_libzip_zipconf_path.patch"
+source="https://downloads.sourceforge.net/ebook-tools/ebook-tools-$pkgver.tar.gz
+ 10-cmake_libzip_zipconf_path.patch
+ "
+options="!check"
-builddir="$srcdir"/$pkgname-$pkgver
build() {
- cd "$builddir"
- cmake \
- -DCMAKE_INSTALL_LIBDIR=lib \
- -DCMAKE_INSTALL_PREFIX=/usr \
- . || return 1
- make || return 1
+ cmake -B build \
+ -DCMAKE_BUILD_TYPE=None \
+ -DCMAKE_INSTALL_PREFIX=/usr
+ cmake --build build
+ cmake --build build --target doc
}
package() {
- cd "$builddir"
- make DESTDIR="$pkgdir" install || return 1
- install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE || return 1
+ 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