diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-05-18 07:30:04 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-05-18 12:52:04 +0000 |
commit | 4355d82e16d88a3874dbaba2025f65542cefb4ce (patch) | |
tree | dc4d836b9dc7a20715e6ff08a2777e7ba4ae1619 /community/libcdr | |
parent | 67fbde737aa1103eb7f049c2f7d80e90c7ec8f93 (diff) | |
download | aports-4355d82e16d88a3874dbaba2025f65542cefb4ce.tar.bz2 aports-4355d82e16d88a3874dbaba2025f65542cefb4ce.tar.xz |
community/libcdr: moved from main
Diffstat (limited to 'community/libcdr')
-rw-r--r-- | community/libcdr/APKBUILD | 53 |
1 files changed, 53 insertions, 0 deletions
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 <timo.teras@iki.fi> +# Maintainer: Timo Teräs <timo.teras@iki.fi> +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" |