packages/libvisio/PKGBUILD

36 lines
1.0 KiB
Bash

# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: AndyRTR <andyrtr@archlinux.org>
# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
# Contributor: ponsfoot <cabezon dot hashimoto at gmail dot com>
# Contributor: philacs
pkgname=libvisio
pkgver=0.1.8
pkgrel=1
pkgdesc='Library providing ability to interpret and import visio diagrams'
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
url="https://wiki.documentfoundation.org/DLP/Libraries/libvisio"
license=('MPL-2.0')
depends=('libxml2' 'icu' 'librevenge'
'gcc-libs' 'glibc')
makedepends=('boost' 'gperf' 'doxygen' 'cppunit')
source=(https://dev-www.libreoffice.org/src/$pkgname/$pkgname-$pkgver.tar.xz)
sha256sums=('b4098ffbf4dcb9e71213fa0acddbd928f27bed30db2d80234813b15d53d0405b')
build() {
cd $pkgname-$pkgver
./configure --prefix=/usr --build=${CHOST}
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
check() {
cd $pkgname-$pkgver
make check
}
package() {
cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install
}