# Maintainer: Antonio Rojas <arojas@archlinux.org>

pkgname=4ti2
pkgver=1.6.9
pkgrel=2
pkgdesc="A software package for algebraic, geometric and combinatorial problems on linear spaces"
arch=(x86_64)
url="https://4ti2.github.io/"
license=(GPL)
depends=(glpk)
source=("https://github.com/4ti2/4ti2/releases/download/Release_${pkgver//./_}/$pkgname-$pkgver.tar.gz")
sha256sums=('3053e7467b5585ad852f6a56e78e28352653943e7249ad5e5174d4744d174966')

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

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

