summaryrefslogtreecommitdiff
path: root/extra/cln/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/cln/PKGBUILD')
-rw-r--r--extra/cln/PKGBUILD20
1 files changed, 16 insertions, 4 deletions
diff --git a/extra/cln/PKGBUILD b/extra/cln/PKGBUILD
index 30f69b7a9..8c3315c87 100644
--- a/extra/cln/PKGBUILD
+++ b/extra/cln/PKGBUILD
@@ -3,12 +3,12 @@
pkgname=cln
pkgver=1.3.2
-pkgrel=1
+pkgrel=1.1
pkgdesc="Class library for numbers"
-arch=('i686' 'x86_64')
+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