From ec86a49e6a24c25411537fd5d1831b8807316aba Mon Sep 17 00:00:00 2001 From: Francesco Colista Date: Wed, 18 May 2016 09:00:53 +0000 Subject: community/libvisio: moved from main --- community/libvisio/APKBUILD | 47 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 community/libvisio/APKBUILD (limited to 'community') diff --git a/community/libvisio/APKBUILD b/community/libvisio/APKBUILD new file mode 100644 index 0000000000..bb582c9b05 --- /dev/null +++ b/community/libvisio/APKBUILD @@ -0,0 +1,47 @@ +# Contributor: Timo Teräs +# Maintainer: Timo Teräs +pkgname=libvisio +pkgver=0.1.5 +pkgrel=1 +pkgdesc="Import filter and tools for MS Visio Diagrams" +url="https://wiki.documentfoundation.org/DLP/Libraries/libvisio" +arch="all" +license="MPL2.0" +depends="" +depends_dev="boost-dev librevenge-dev icu-dev libwpd-dev libwpg-dev libxml2-dev zlib-dev" +makedepends="$depends_dev doxygen gperf perl" +install="" +subpackages="$pkgname-dev $pkgname-doc $pkgname-tools" +source="http://dev-www.libreoffice.org/src/$pkgname/$pkgname-$pkgver.tar.xz" + +builddir="$srcdir"/$pkgname-$pkgver + +build() { + cd "$builddir" + # boost -1.59 + export CPPFLAGS='-DBOOST_ERROR_CODE_HEADER_ONLY -DBOOST_SYSTEM_NO_DEPRECATED' + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --localstatedir=/var \ + || return 1 + make || return 1 +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install || return 1 +} + +tools() { + mkdir -p "$subpkgdir"/usr + mv "$pkgdir"/usr/bin "$subpkgdir"/usr +} + +md5sums="691522167fe3b0c94becfe5d957883be libvisio-0.1.5.tar.xz" +sha256sums="430a067903660bb1b97daf4b045e408a1bb75ca45e615cf05fb1a4da65fc5a8c libvisio-0.1.5.tar.xz" +sha512sums="094ab546f650840d52fc34c1b105eff139d2f6e4d5cab7c9c99f8387ece0d0c6b02ec1376b3281d56a901bac016c2a024bb708c065b8b5d9404104e6494b5fab libvisio-0.1.5.tar.xz" -- cgit v1.2.3