summaryrefslogtreecommitdiff
path: root/user/libqxp/APKBUILD
diff options
context:
space:
mode:
authorMax Rees <maxcrees@me.com>2018-08-10 18:48:55 -0400
committerMax Rees <maxcrees@me.com>2018-08-10 18:48:55 -0400
commit6fb12feea74acb1325e343367a3d5b2a6c1656cb (patch)
tree22e0a9a36ededc32f66d2ee34370028b65be4ef2 /user/libqxp/APKBUILD
parent3a0666a9fe369e07c6aa96e32c859e385546ed36 (diff)
downloadpackages-6fb12feea74acb1325e343367a3d5b2a6c1656cb.tar.gz
packages-6fb12feea74acb1325e343367a3d5b2a6c1656cb.tar.bz2
packages-6fb12feea74acb1325e343367a3d5b2a6c1656cb.tar.xz
packages-6fb12feea74acb1325e343367a3d5b2a6c1656cb.zip
user/libqxp: pull in, modernize, split -tools
Diffstat (limited to 'user/libqxp/APKBUILD')
-rw-r--r--user/libqxp/APKBUILD47
1 files changed, 47 insertions, 0 deletions
diff --git a/user/libqxp/APKBUILD b/user/libqxp/APKBUILD
new file mode 100644
index 000000000..de0a29d66
--- /dev/null
+++ b/user/libqxp/APKBUILD
@@ -0,0 +1,47 @@
+# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
+# Maintainer: Max Rees <maxcrees@me.com>
+pkgname=libqxp
+pkgver=0.0.1
+pkgrel=0
+pkgdesc="Import filter and tools for QuarkXPress documents"
+url="https://wiki.documentfoundation.org/DLP/Libraries/libqxp"
+arch="all"
+license="MPL-2.0"
+depends=""
+depends_dev="librevenge-dev"
+makedepends="$depends_dev icu-dev doxygen"
+checkdepends="cppunit-dev"
+subpackages="$pkgname-dev $pkgname-doc $pkgname-tools"
+source="https://dev-www.libreoffice.org/src/$pkgname/$pkgname-$pkgver.tar.xz"
+
+build() {
+ cd "$builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var \
+ make
+ cd "$builddir/docs"
+ 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="a03a9ada658a92f4d985cad91d467b3916334c74dc26c1e4de89e3929e0135ca0e9c7e7e18ce616ef56a67863ec19c2638494400785849017f9a4776df07c607 libqxp-0.0.1.tar.xz"