From 4355d82e16d88a3874dbaba2025f65542cefb4ce Mon Sep 17 00:00:00 2001 From: Francesco Colista Date: Wed, 18 May 2016 07:30:04 +0000 Subject: community/libcdr: moved from main --- community/libcdr/APKBUILD | 53 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 community/libcdr/APKBUILD (limited to 'community/libcdr') diff --git a/community/libcdr/APKBUILD b/community/libcdr/APKBUILD new file mode 100644 index 0000000000..7e6cde0376 --- /dev/null +++ b/community/libcdr/APKBUILD @@ -0,0 +1,53 @@ +# Contributor: Timo Teräs +# Maintainer: Timo Teräs +pkgname=libcdr +pkgver=0.1.2 +pkgrel=1 +pkgdesc="Import filter and tools for Corel DRAW files" +url="https://wiki.documentfoundation.org/DLP/Libraries/libcdr" +arch="all" +license="MPL2" +depends="" +depends_dev="boost-dev librevenge-dev lcms2-dev zlib-dev icu-dev" +makedepends="$depends_dev doxygen" +install="" +subpackages="$pkgname-dev $pkgname-doc $pkgname-tools" +source="http://dev-www.libreoffice.org/src/$pkgname/$pkgname-$pkgver.tar.xz" + +builddir="$srcdir"/$pkgname-$pkgver + +prepare() { + default_prepare + update_config_sub +} + +build() { + cd "$builddir" + # workaround for boost-1.59 + export CPPFLAGS="-DBOOST_ERROR_CODE_HEADER_ONLY" + + ./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="c8f6c5e3b5769c9814e07ce5b9d07fba libcdr-0.1.2.tar.xz" +sha256sums="6bdb20bcdec5ad1a115d0a3aada7d4b2758e9d22801d72b4ecc2e55fb3d5d42c libcdr-0.1.2.tar.xz" +sha512sums="c5c08444fa28be13b60ba1aa515a47606de80b079cbabb0276f54064820fecb2a6ee50a8b33a6cc1b2f5f46323d3de7f00822aadec5c3058a14adebf5255da91 libcdr-0.1.2.tar.xz" -- cgit v1.2.3