summaryrefslogtreecommitdiff
path: root/user/ebook-tools
diff options
context:
space:
mode:
Diffstat (limited to 'user/ebook-tools')
-rw-r--r--user/ebook-tools/APKBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/user/ebook-tools/APKBUILD b/user/ebook-tools/APKBUILD
new file mode 100644
index 000000000..6c33ad3d5
--- /dev/null
+++ b/user/ebook-tools/APKBUILD
@@ -0,0 +1,39 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=ebook-tools
+pkgver=0.2.2
+pkgrel=0
+pkgdesc="Tools for manipulating various electronic book formats"
+url="https://sourceforge.net/projects/ebook-tools/"
+arch="all"
+license="MIT"
+depends="convertlit cmd:which"
+makedepends="libxml2-dev libzip-dev"
+subpackages="$pkgname-dev"
+source="https://downloads.sourceforge.net/ebook-tools/ebook-tools-$pkgver.tar.gz"
+
+build() {
+ cd "$builddir"
+ if [ "$CBUILD" != "$CHOST" ]; then
+ CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
+ fi
+ cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DBUILD_SHARED_LIBS=True \
+ -DCMAKE_BUILD_TYPE=RelWithDebugInfo \
+ -DCMAKE_C_FLAGS="$CFLAGS" \
+ ${CMAKE_CROSSOPTS}
+ make
+}
+
+check() {
+ cd "$builddir"
+ CTEST_OUTPUT_ON_FAILURE=TRUE ctest
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="b4518249835ed7cc672392bf2f8b1c62bc218e41c53663bb26ab34c9e43a99b6b7ae794babdb4bd775e467bb17918703a66ee57c8cf94cb7afc4ba2a7f74816a ebook-tools-0.2.2.tar.gz"