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

pkgname=libbraiding
pkgver=1.1
pkgrel=1
pkgdesc="Library to compute several properties of braids, including centralizer and conjugacy check"
arch=(x86_64)
url="https://github.com/miguelmarco/libbraiding"
license=(GPL3)
depends=(gcc-libs)
source=("https://github.com/miguelmarco/libbraiding/releases/download/$pkgver/$pkgname-$pkgver.tar.gz")
sha256sums=('f436998c8639b4ae6073a4d16a024f7278abbd305961c901347accd6b70c4a53')

build() {
  cd $pkgname-$pkgver
  ./configure --prefix=/usr
  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
  make
}

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

