mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
41 lines
1.3 KiB
Bash
41 lines
1.3 KiB
Bash
|
# $Id: PKGBUILD 72798 2010-03-20 03:28:40Z allan $
|
||
|
# Maintainer: Eric Belanger <eric@archlinux.org>
|
||
|
# Contributor: Ben <ben@benmazer.net>
|
||
|
|
||
|
# PlugApps: Kevin Mihelich <kevin@plugapps.com>
|
||
|
# - Added patch to fix compiling on ARM
|
||
|
# Source: https://bugzilla.redhat.com/show_bug.cgi?id=517478
|
||
|
|
||
|
plugrel=1
|
||
|
|
||
|
pkgname=cln
|
||
|
pkgver=1.2.2
|
||
|
pkgrel=3
|
||
|
pkgdesc="Class library for numbers"
|
||
|
arch=('i686' 'x86_64')
|
||
|
url="http://www.ginac.de/CLN/"
|
||
|
license=('GPL')
|
||
|
options=('!libtool')
|
||
|
depends=('gmp' 'bash' 'texinfo')
|
||
|
install=cln.install
|
||
|
source=(ftp://ftpthep.physik.uni-mainz.de/pub/gnu/${pkgname}-${pkgver}.tar.bz2
|
||
|
cln-gcc44.patch
|
||
|
cln-arm-preprocessor-fix.patch)
|
||
|
md5sums=('6b479281fec86314b4c7a9357bd83ef8'
|
||
|
'aa678ade85c1e364c879b2e0b40ba80d'
|
||
|
'9bb1177b2462d071236acc15ba615e76')
|
||
|
sha1sums=('2d2a5d3e383a3043c5bf68299a466685ef4ec8ec'
|
||
|
'6abb412a387ba8d27a6a80f963a55677e431daf8'
|
||
|
'5322ed672f623218a7b608e9429e6d7d191b5b75')
|
||
|
|
||
|
build() {
|
||
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
||
|
patch -p1 < ../cln-gcc44.patch || return 1
|
||
|
patch -p1 -i ${srcdir}/cln-arm-preprocessor-fix.patch || return 1
|
||
|
./configure --prefix=/usr || return 1
|
||
|
make || return 1
|
||
|
make DESTDIR="${pkgdir}" htmldir=/usr/share/doc/cln/html dvidir=/usr/share/doc/cln/dvi install || return 1
|
||
|
rm "${pkgdir}/usr/share/info/dir"
|
||
|
gzip "${pkgdir}/usr/share/info/cln.info"
|
||
|
}
|