summaryrefslogtreecommitdiff
path: root/extra/cln/PKGBUILD
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2011-09-24 21:04:02 +0200
committerMichał Masłowski <mtjm@mtjm.eu>2011-09-24 21:04:02 +0200
commit02170671405860bdf43fdea9b7d098e8b3bac34c (patch)
tree38dbc23bbb14d7c1f465017f1a151cb62f85f82e /extra/cln/PKGBUILD
parent04c4c34155cb92f3442787d82cd24ede42f39a82 (diff)
Avoid cln build errors by not using gmp.
Diffstat (limited to 'extra/cln/PKGBUILD')
-rw-r--r--extra/cln/PKGBUILD16
1 files changed, 14 insertions, 2 deletions
diff --git a/extra/cln/PKGBUILD b/extra/cln/PKGBUILD
index 5932374da..8f8082f6f 100644
--- a/extra/cln/PKGBUILD
+++ b/extra/cln/PKGBUILD
@@ -8,7 +8,7 @@ pkgdesc="Class library for numbers"
arch=('i686' 'x86_64' 'mips64el')
url="http://www.ginac.de/CLN/"
license=('GPL')
-depends=('gmp')
+[[ "${CARCH}" == 'mips64el' ]] || depends=('gmp')
makedepends=('texlive-core')
options=('!libtool')
install=cln.install
@@ -18,10 +18,22 @@ sha1sums=('c30dca80e75f45e2107f233075e6d0339ea884b0')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
- ./configure --prefix=/usr
+ sed -i 's/<sizeof(mp_limb_t) > sizeof(long)>/<(sizeof(mp_limb_t) > sizeof(long))>/' configure
+ # For unknown reasons it fails.
+ if [[ "${CARCH}" == 'mips64el' ]] ; then
+ use_gmp=--without-gmp
+ else
+ use_gmp=
+ fi
+ ./configure --prefix=/usr $use_gmp
make all html pdf
}
+check() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make check
+}
+
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install install-html install-pdf