diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-01-15 17:20:02 +0000 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-01-15 17:20:02 +0000 |
commit | bd28678b139a4221b32149bad4e36c00c171bff9 (patch) | |
tree | e729a8d1558899808c8432c8cf73831143861a70 | |
parent | 2650845b21f1fcacc402513108241ea7d3a51d10 (diff) | |
download | packages-bd28678b139a4221b32149bad4e36c00c171bff9.tar.gz packages-bd28678b139a4221b32149bad4e36c00c171bff9.tar.bz2 packages-bd28678b139a4221b32149bad4e36c00c171bff9.tar.xz packages-bd28678b139a4221b32149bad4e36c00c171bff9.zip |
user/ebook-tools: new package
-rw-r--r-- | user/ebook-tools/APKBUILD | 39 |
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" |