From bd28678b139a4221b32149bad4e36c00c171bff9 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Tue, 15 Jan 2019 17:20:02 +0000 Subject: user/ebook-tools: new package --- user/ebook-tools/APKBUILD | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 user/ebook-tools/APKBUILD 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 +# Maintainer: A. Wilcox +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" -- cgit v1.2.3-70-g09d2