Date: Friday, June 24, 2022 @ 14:36:13 Author: arojas Revision: 1239350
archrelease: copy trunk to community-staging-x86_64 Added: e-antic/repos/community-staging-x86_64/ e-antic/repos/community-staging-x86_64/PKGBUILD (from rev 1239349, e-antic/trunk/PKGBUILD) ----------+ PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) Copied: e-antic/repos/community-staging-x86_64/PKGBUILD (from rev 1239349, e-antic/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2022-06-24 14:36:13 UTC (rev 1239350) @@ -0,0 +1,45 @@ +# Maintainer: Antonio Rojas <aro...@archlinux.org> + +pkgname=e-antic +pkgver=1.2.1 +pkgrel=2 +pkgdesc='Embedded algebraic number fields (on top of antic)' +arch=(x86_64) +url='https://github.com/flatsurf/e-antic/' +license=(LGPL) +depends=(arb antic) +makedepends=(boost catch2) +source=(https://github.com/flatsurf/e-antic/releases/download/$pkgver/$pkgname-$pkgver.tar.gz) +sha256sums=('a7bfb92620fd7e42a06efbe89e011abee88f4fbd99bcec34fd8300ae9b1cf543') + +prepare() { + cd $pkgname-$pkgver +# Unbundle catch2 to fix build with glibc 2.35 + rm -r libeantic/test/external/catch2/single_include/catch2 + ln -s /usr/include/catch2 libeantic/test/external/catch2/single_include +} + +build() { + cd $pkgname-$pkgver + ./configure \ + --prefix=/usr \ + --without-benchmark \ + --without-byexample \ + --without-pytest \ + --without-doc +# https://bugzilla.gnome.org/show_bug.cgi?id=655517 + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libeantic/libtool + make +} + +check() { + cd $pkgname-$pkgver + make check +} + +package() { + cd $pkgname-$pkgver + make DESTDIR="$pkgdir" install + + install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +}