diff options
Diffstat (limited to 'extra/cln/PKGBUILD')
-rw-r--r-- | extra/cln/PKGBUILD | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/extra/cln/PKGBUILD b/extra/cln/PKGBUILD index fa2bd62bc..f2ac74081 100644 --- a/extra/cln/PKGBUILD +++ b/extra/cln/PKGBUILD @@ -5,10 +5,10 @@ pkgname=cln pkgver=1.3.3 pkgrel=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 @@ -16,13 +16,20 @@ source=(http://www.ginac.de/CLN/${pkgname}-${pkgver}.tar.bz2) sha1sums=('11c56780eb83ed54f2ad1ecef7f0dc0f609c426d') build() { - cd ${pkgname}-${pkgver} - ./configure --prefix=/usr + cd "${srcdir}/${pkgname}-${pkgver}" + 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 ${pkgname}-${pkgver} + cd "${srcdir}/${pkgname}-${pkgver}" make check } |