# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: Jaroslav Lichtblau <svetlemodry@archlinux.org>
# Contributor: Brian Galey <bkgaley at gmail dot com>
# Contributor: Bruno Gola <brunogola at gmail dot com>

pkgname=libfreexl
pkgver=2.0.0
pkgrel=2
pkgdesc="Library to extract valid data from within an Excel (.xls) spreadsheet"
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
url="https://www.gaia-gis.it/fossil/freexl/index"
license=('MPL' 'GPL' 'LGPL')
depends=('glibc' 'minizip')
source=(https://www.gaia-gis.it/gaia-sins/${pkgname/lib/}-$pkgver.tar.gz)
sha256sums=('176705f1de58ab7c1eebbf5c6de46ab76fcd8b856508dbd28f5648f7c6e1a7f0')

build() {
  cd "${srcdir}"/${pkgname/lib/}-$pkgver

  ./configure --prefix=/usr --build=${CHOST}
  make
}

package() {
  cd "${srcdir}"/${pkgname/lib/}-$pkgver

  make DESTDIR="${pkgdir}" install
}
