aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2017-11-23 19:47:01 +0000
committerRoberto Oliveira <robertoguimaraes8@gmail.com>2017-11-23 19:47:01 +0000
commit4e673f071e6af1cae6ab45e0dbf3a3f982259ae5 (patch)
tree5ac7028ba6cbd4a3aab9f7fccf1b4f623ccd6c79
parent1454fbb94a20d4c148e247288ccf681bec92e70f (diff)
downloadaports-4e673f071e6af1cae6ab45e0dbf3a3f982259ae5.tar.bz2
aports-4e673f071e6af1cae6ab45e0dbf3a3f982259ae5.tar.xz
community/libe-book: modernize and add check
-rw-r--r--community/libe-book/APKBUILD22
1 files changed, 11 insertions, 11 deletions
diff --git a/community/libe-book/APKBUILD b/community/libe-book/APKBUILD
index b0e3d126dd..eebf0a1a16 100644
--- a/community/libe-book/APKBUILD
+++ b/community/libe-book/APKBUILD
@@ -2,22 +2,20 @@
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=libe-book
pkgver=0.1.2
-pkgrel=5
+pkgrel=6
pkgdesc="Import filter and tools for various ebook formats"
url="https://sourceforge.net/projects/libebook/"
arch="all"
license="MPL2"
-depends=""
depends_dev="boost-dev icu-dev librevenge-dev libxml2-dev zlib-dev"
makedepends="$depends_dev doxygen gperf"
-install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-tools"
source="http://downloads.sourceforge.net/project/libebook/libe-book-$pkgver/libe-book-$pkgver.tar.bz2"
-builddir="$srcdir"/libe-book-$pkgver
+builddir="$srcdir/$pkgname-$pkgver"
prepare() {
- default_prepare || return 1
+ default_prepare
update_config_sub
}
@@ -33,14 +31,18 @@ build() {
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var \
- --disable-werror \
- || return 1
- make || return 1
+ --disable-werror
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
}
package() {
cd "$builddir"
- make DESTDIR="$pkgdir" install || return 1
+ make DESTDIR="$pkgdir" install
}
tools() {
@@ -48,6 +50,4 @@ tools() {
mv "$pkgdir"/usr/bin "$subpkgdir"/usr
}
-md5sums="6b48eda57914e6343efebc9381027b78 libe-book-0.1.2.tar.bz2"
-sha256sums="b710a57c633205b933015474d0ac0862253d1c52114d535dd09b20939a0d1850 libe-book-0.1.2.tar.bz2"
sha512sums="82982874f9c0f5e400166e9367a4b6017cf11bbd69e2e79240137385a5d68ddea08f13676f8c5d0e983f441de17cda9f4b5f7c90c5cb3515e319de638edf3a38 libe-book-0.1.2.tar.bz2"