# Description: File import filter library for spreadsheet documents.
# URL: https://gitlab.com/orcus/orcus
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: libixion

name=liborcus
version=0.18.1
release=2
source=(https://kohei.us/files/orcus/src/$name-$version.tar.xz
  rpath.patch.0
  libtool.patch.0
  fix-pch.patch.0
  liborcus_newline.patch.1)

build() {
  cd $name-$version

  patch -Np0 -i $SRC/rpath.patch.0
  patch -Np0 -i $SRC/libtool.patch.0
  patch -Np0 -i $SRC/fix-pch.patch.0
  patch -Np1 -i $SRC/liborcus_newline.patch.1

  ./configure --prefix=/usr --disable-python
  make
  make DESTDIR=$PKG install
}
