summaryrefslogtreecommitdiff
path: root/user/libzmf
diff options
context:
space:
mode:
authorMax Rees <maxcrees@me.com>2018-08-11 20:15:22 -0400
committerMax Rees <maxcrees@me.com>2018-08-11 20:15:22 -0400
commit0d27c90fec7f8b12a0ccdc9cbf32e8d521e7adbf (patch)
tree77d850f3b663205c0d658249339968fc56bee50b /user/libzmf
parent867a8c4d692ff35682a83e826363ac8922ef9cef (diff)
downloadpackages-0d27c90fec7f8b12a0ccdc9cbf32e8d521e7adbf.tar.gz
packages-0d27c90fec7f8b12a0ccdc9cbf32e8d521e7adbf.tar.bz2
packages-0d27c90fec7f8b12a0ccdc9cbf32e8d521e7adbf.tar.xz
packages-0d27c90fec7f8b12a0ccdc9cbf32e8d521e7adbf.zip
user/libzmf: pull in, modernize, upgrade, add tests, split -tools
Diffstat (limited to 'user/libzmf')
-rw-r--r--user/libzmf/APKBUILD50
1 files changed, 50 insertions, 0 deletions
diff --git a/user/libzmf/APKBUILD b/user/libzmf/APKBUILD
new file mode 100644
index 000000000..3307e6598
--- /dev/null
+++ b/user/libzmf/APKBUILD
@@ -0,0 +1,50 @@
+# Contributor: Timo Teräs <timo.teras@iki.fi>
+# Maintainer: Max Rees <maxcrees@me.com>
+pkgname=libzmf
+pkgver=0.0.2
+pkgrel=0
+pkgdesc="Import filter and tools for Zoner Callisto/Draw documents"
+url="https://wiki.documentfoundation.org/DLP/Libraries/libzmf"
+arch="all"
+license="MPL-2.0"
+depends=""
+depends_dev="boost-dev icu-dev libpng-dev zlib-dev"
+makedepends="$depends_dev librevenge-dev doxygen"
+checkdepends="cppunit-dev"
+subpackages="$pkgname-dev $pkgname-doc $pkgname-tools"
+source="http://dev-www.libreoffice.org/src/$pkgname/$pkgname-$pkgver.tar.xz"
+
+prepare() {
+ default_prepare
+ update_config_sub
+}
+
+build() {
+ cd "$builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var \
+ --disable-werror
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+tools() {
+ mkdir -p "$subpkgdir"/usr
+ mv "$pkgdir"/usr/bin "$subpkgdir"/usr
+}
+
+sha512sums="ad4a8e65e85434e43caa239ff2a3f358c6db6411235c4bb73d8d2aa1527a4f411433370706db391f8f8110a36759249ee19b27be75bae5f361c491006d1b9aa2 libzmf-0.0.2.tar.xz"