PKGBUILDs/extra/cln/PKGBUILD

43 lines
1.2 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
2011-08-01 22:30:01 +00:00
# ALARM: Kevin Mihelich <kevin@plugapps.com>
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
2011-02-09 21:23:53 +00:00
plugrel=1
2011-01-23 18:45:48 +00:00
pkgname=cln
2011-07-09 01:17:37 +00:00
pkgver=1.3.2
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
2011-02-09 21:11:18 +00:00
source=(ftp://ftpthep.physik.uni-mainz.de/pub/gnu/${pkgname}-${pkgver}.tar.bz2)
2011-07-09 01:17:37 +00:00
md5sums=('d897cce94d9c34d106575ed4ec865d71')
sha1sums=('c30dca80e75f45e2107f233075e6d0339ea884b0')
2011-01-23 18:45:48 +00:00
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
2011-07-09 01:17:37 +00:00
if [ "$CARCH" = "armv7h" ]; then
export CFLAGS="-march=armv7-a -pipe -DNO_ASM"
export CXXFLAGS="-march=armv7-a -pipe -DNO_ASM"
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
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install install-html
2011-01-23 18:45:48 +00:00
}