PKGBUILDs/extra/cln/PKGBUILD

48 lines
1.4 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
2013-07-22 01:22:37 +00:00
pkgver=1.3.3
2011-02-09 21:11:18 +00:00
pkgrel=1
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
options=('!libtool')
install=cln.install
2013-07-22 01:22:37 +00:00
source=(http://www.ginac.de/CLN/${pkgname}-${pkgver}.tar.bz2)
sha1sums=('11c56780eb83ed54f2ad1ecef7f0dc0f609c426d')
2011-01-23 18:45:48 +00:00
build() {
2013-07-22 01:22:37 +00:00
cd ${pkgname}-${pkgver}
2011-07-09 01:17:37 +00:00
if [ "$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
}