# Maintainer: Antonio Rojas <arojas@archlinux.org>
# Contributor: Rémy Oudompheng <remy@archlinux.org>

pkgname=cddlib
pkgver=0.94m
pkgrel=1
epoch=1
pkgdesc="C library implementing Double Description Method for convex polyhedra"
arch=(x86_64)
url="https://www.inf.ethz.ch/personal/fukudak/cdd_home/"
license=(GPL)
depends=(gmp)
source=("https://github.com/cddlib/cddlib/releases/download/$pkgver/$pkgname-$pkgver.tar.gz")
sha256sums=('70dffdb3369b8704dc75428a1b3c42ab9047b81ce039f12f427e2eb2b1b0dee2')

build() {
  cd $pkgname-$pkgver
  ./configure --prefix=/usr
  make
}

package() {
  cd $pkgname-$pkgver
  make DESTDIR="$pkgdir" install
}
