summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
authorMax Rees <maxcrees@me.com>2018-08-09 02:26:09 -0400
committerMax Rees <maxcrees@me.com>2018-08-09 02:26:09 -0400
commit0eac0f6d734a2b78d005e06aa4980ea730dafb08 (patch)
tree7fe568d96df402684a28f4635220e5420c587491 /user
parent2b12543d96fd898f6139ed1714ba414818830c9c (diff)
downloadpackages-0eac0f6d734a2b78d005e06aa4980ea730dafb08.tar.gz
packages-0eac0f6d734a2b78d005e06aa4980ea730dafb08.tar.bz2
packages-0eac0f6d734a2b78d005e06aa4980ea730dafb08.tar.xz
packages-0eac0f6d734a2b78d005e06aa4980ea730dafb08.zip
user/libcdr: pull in, +checkdepends=cppunit-dev
Diffstat (limited to 'user')
-rw-r--r--user/libcdr/APKBUILD50
1 files changed, 50 insertions, 0 deletions
diff --git a/user/libcdr/APKBUILD b/user/libcdr/APKBUILD
new file mode 100644
index 000000000..8ed5fd70b
--- /dev/null
+++ b/user/libcdr/APKBUILD
@@ -0,0 +1,50 @@
+# Contributor: Timo Teräs <timo.teras@iki.fi>
+# Maintainer: Max Rees <maxcrees@me.com>
+pkgname=libcdr
+pkgver=0.1.4
+pkgrel=2
+pkgdesc="Import filter and tools for Corel DRAW files"
+url="https://wiki.documentfoundation.org/DLP/Libraries/libcdr"
+arch="all"
+license="MPL-2.0"
+depends=""
+depends_dev="boost-dev"
+makedepends="$depends_dev doxygen icu-dev lcms2-dev zlib-dev librevenge-dev"
+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 \
+ --infodir=/usr/share/info \
+ --localstatedir=/var
+ 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="769b0319b5a904ce9f727b7076f82cd915ecd8c9e5e2456416e3e6739c6403bbd4108787ab124d36efb1b47d5c9e37c48b0e12d096eb440ae8f9979ec06048a6 libcdr-0.1.4.tar.xz"