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
|
2019-12-06 19:05:32 +00:00
|
|
|
pkgver=1.3.6
|
2023-06-19 18:07:53 +00:00
|
|
|
pkgrel=4
|
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)
|
2022-12-27 14:41:35 +00:00
|
|
|
sha256sums=('f492530e8879bda529009b6033e1923c8f4aae843149fc28c667c20b094d984a')
|
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
|
|
|
}
|