PKGBUILDs/extra/cln/PKGBUILD

43 lines
1.2 KiB
Bash
Raw Normal View History

2023-06-19 18:07:53 +00:00
# Maintainer:
# Contributor: Eric Bélanger <eric@archlinux.org>
2011-01-23 18:45:48 +00:00
2012-07-29 19:26:36 +00:00
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
2011-02-09 21:11:18 +00:00
# - Redefined our CFLAGS and CXXFLAGS to remove -O2, and define -DNO_ASM.
# Optimization kills the builds, NO_ASM prevents it using asm that doesn't work for us.
# - Removed building and installing pdf docs, it always fails.
2011-01-23 18:45:48 +00:00
pkgname=cln
2024-07-30 18:52:29 +00:00
pkgver=1.3.7
pkgrel=1
2011-01-23 18:45:48 +00:00
pkgdesc="Class library for numbers"
2018-11-09 13:56:35 +00:00
arch=('x86_64')
2019-11-20 14:53:19 +00:00
url="https://www.ginac.de/CLN/"
2011-01-23 18:45:48 +00:00
license=('GPL')
2011-02-09 21:11:18 +00:00
depends=('gmp')
2023-06-19 18:07:53 +00:00
makedepends=('texlive-latex')
2019-11-20 14:53:19 +00:00
source=(https://www.ginac.de/CLN/${pkgname}-${pkgver}.tar.bz2)
2024-07-30 18:52:29 +00:00
sha256sums=('7c7ed8474958337e4df5bb57ea5176ad0365004cbb98b621765bc4606a10d86b')
2011-01-23 18:45:48 +00:00
build() {
2013-07-22 01:22:37 +00:00
cd ${pkgname}-${pkgver}
2015-07-18 20:10:31 +00:00
if [ "$CARCH" = "aarch64" ]; then
export CFLAGS="-march=armv8-a -pipe -DNO_ASM"
export CXXFLAGS="-march=armv8-a -pipe -DNO_ASM"
elif [ "$CARCH" = "armv7h" ]; then
2012-07-29 19:26:36 +00:00
export CFLAGS="-march=armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16 -pipe -DNO_ASM"
export CXXFLAGS="-march=armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16 -pipe -DNO_ASM"
2011-07-09 01:17:37 +00:00
fi
2011-02-09 21:11:18 +00:00
./configure --prefix=/usr
make all html
}
2013-07-22 01:22:37 +00:00
check() {
cd ${pkgname}-${pkgver}
make check
}
2011-02-09 21:11:18 +00:00
package() {
2013-07-22 01:22:37 +00:00
cd ${pkgname}-${pkgver}
2011-02-09 21:11:18 +00:00
make DESTDIR="${pkgdir}" install install-html
2011-01-23 18:45:48 +00:00
}