PKGBUILDs/extra/cln/PKGBUILD

50 lines
1.5 KiB
Bash
Raw Normal View History

2011-07-09 01:17:37 +00:00
# $Id: PKGBUILD 127750 2011-06-18 05:06:20Z eric $
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
2014-12-31 07:25:34 +00:00
pkgver=1.3.4
2015-12-10 05:25:14 +00:00
pkgrel=2
2011-01-23 18:45:48 +00:00
pkgdesc="Class library for numbers"
arch=('i686' 'x86_64')
url="http://www.ginac.de/CLN/"
license=('GPL')
2011-02-09 21:11:18 +00:00
depends=('gmp')
makedepends=('texlive-core')
2011-01-23 18:45:48 +00:00
install=cln.install
2013-07-22 01:22:37 +00:00
source=(http://www.ginac.de/CLN/${pkgname}-${pkgver}.tar.bz2)
2014-12-31 07:25:34 +00:00
sha1sums=('76f73071236ead72ba5c9ee892f29ca24e557b8c')
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
}