PKGBUILDs/extra/cln/PKGBUILD

48 lines
1.5 KiB
Bash
Raw Normal View History

2011-02-09 21:11:18 +00:00
# Maintainer: 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
2020-05-19 01:49:16 +00:00
pkgrel=2
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')
makedepends=('texlive-core')
2019-11-20 14:53:19 +00:00
source=(https://www.ginac.de/CLN/${pkgname}-${pkgver}.tar.bz2)
2019-12-06 19:05:32 +00:00
sha1sums=('144f15a57f4b25ada0f10ff28458de03578f6f16')
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"
elif [ "$CARCH" = "armv6h" ]; then
export CFLAGS="-march=armv6 -mfloat-abi=hard -mfpu=vfp -pipe -DNO_ASM"
export CXXFLAGS="-march=armv6 -mfloat-abi=hard -mfpu=vfp -pipe -DNO_ASM"
2011-07-09 01:17:37 +00:00
else
export CFLAGS="-march=armv5te -pipe -DNO_ASM"
export CXXFLAGS="-march=armv5te -pipe -DNO_ASM"
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
}