2019-11-28 15:49:54 +00:00
|
|
|
# Maintainer: Antonio Rojas <arojas@archlinux.org>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - strip -mavx from configure and Makefile
|
|
|
|
|
|
|
|
pkgname=libsemigroups
|
2020-01-12 02:38:33 +00:00
|
|
|
pkgver=1.0.4
|
|
|
|
pkgrel=2
|
2019-11-28 15:49:54 +00:00
|
|
|
pkgdesc="C++ library for semigroups and monoids"
|
|
|
|
url="https://libsemigroups.github.io/libsemigroups/"
|
|
|
|
arch=(x86_64)
|
|
|
|
license=(GPL3)
|
|
|
|
depends=(gcc-libs)
|
|
|
|
makedepends=(fmt)
|
2020-01-12 02:38:33 +00:00
|
|
|
source=(https://github.com/libsemigroups/libsemigroups/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz)
|
|
|
|
sha256sums=('4956c868c41b3421da211f413b4b104b7882640ebb464314e8b12f7b6e10fcb0')
|
2019-11-28 15:49:54 +00:00
|
|
|
|
2020-01-12 02:38:33 +00:00
|
|
|
build() {
|
2019-11-28 15:49:54 +00:00
|
|
|
cd $pkgname-$pkgver
|
|
|
|
sed -i 's/-mavx//g' configure.ac Makefile.am
|
|
|
|
autoreconf -fi
|
2020-01-12 02:38:33 +00:00
|
|
|
./configure --prefix=/usr --with-external-fmt
|
2019-11-28 15:49:54 +00:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
make DESTDIR="$pkgdir" install
|
2020-01-12 02:38:33 +00:00
|
|
|
|
|
|
|
sed -e 's|lsemigroups|lsemigroups-1.0|g' -i "$pkgdir"/usr/lib/pkgconfig/libsemigroups.pc # Fix lib name in pkgconfig
|
2019-11-28 15:49:54 +00:00
|
|
|
}
|