diff --git a/community/fplll/PKGBUILD b/community/fplll/PKGBUILD new file mode 100644 index 000000000..da741a8f1 --- /dev/null +++ b/community/fplll/PKGBUILD @@ -0,0 +1,31 @@ +# 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 +}