summaryrefslogtreecommitdiff
path: root/user/ebook-tools
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2020-01-01 20:44:18 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2020-01-01 20:44:18 +0000
commita278c3e05013fa3366554af5dee719a0ba90d798 (patch)
tree3e8b407a54ea97bc7fe4a5a2757dde27a6320e37 /user/ebook-tools
parent4c66fd861e536f7b7e2e68a78b748cfeb62026c4 (diff)
downloadpackages-a278c3e05013fa3366554af5dee719a0ba90d798.tar.gz
packages-a278c3e05013fa3366554af5dee719a0ba90d798.tar.bz2
packages-a278c3e05013fa3366554af5dee719a0ba90d798.tar.xz
packages-a278c3e05013fa3366554af5dee719a0ba90d798.zip
user/*: Modernise / fix syntax / deps
Diffstat (limited to 'user/ebook-tools')
-rw-r--r--user/ebook-tools/APKBUILD7
1 files changed, 2 insertions, 5 deletions
diff --git a/user/ebook-tools/APKBUILD b/user/ebook-tools/APKBUILD
index 6c33ad3d5..6eeeb3cdb 100644
--- a/user/ebook-tools/APKBUILD
+++ b/user/ebook-tools/APKBUILD
@@ -8,12 +8,11 @@ url="https://sourceforge.net/projects/ebook-tools/"
arch="all"
license="MIT"
depends="convertlit cmd:which"
-makedepends="libxml2-dev libzip-dev"
+makedepends="cmake 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
@@ -22,17 +21,15 @@ build() {
-DBUILD_SHARED_LIBS=True \
-DCMAKE_BUILD_TYPE=RelWithDebugInfo \
-DCMAKE_C_FLAGS="$CFLAGS" \
- ${CMAKE_CROSSOPTS}
+ ${CMAKE_CROSSOPTS} .
make
}
check() {
- cd "$builddir"
CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}
package() {
- cd "$builddir"
make DESTDIR="$pkgdir" install
}