# Maintainer: Antonio Rojas # ALARM: Kevin Mihelich # - explicitly link v5/v6 with libatomic pkgname=fplll pkgver=5.3.0 pkgrel=2 pkgdesc="Lattice algorithms using floating-point arithmetic" arch=(x86_64) url="https://github.com/fplll/fplll" license=(LGPL) depends=(mpfr qd) conflicts=(libfplll) provides=(libfplll) replaces=(libfplll) source=("https://github.com/fplll/fplll/releases/download/$pkgver/$pkgname-$pkgver.tar.gz") sha256sums=('67a579842f5dabf9b3968b0c12af1ee808c5bfb7bc611fe4c2bba9ca00af1067') build() { cd $pkgname-$pkgver export LDFLAGS+=' -lpthread' # Fix underlinking [[ $CARCH == "arm" || $CARCH == "armv6h" ]] && LIBS="-latomic" LIBS=$LIBS ./configure --prefix=/usr make } package() { cd $pkgname-$pkgver make DESTDIR="$pkgdir" install }