updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / mpdecimal / PKGBUILD
blob28afd704611e6a32bdcfbefc8c621a7c18000820
1 pkgname=mpdecimal
2 pkgver=2.2
3 pkgrel=1
4 pkgdesc="Package for correctly-rounded arbitrary precision decimal floating point arithmetic"
5 arch=('i686' 'x86_64')
6 url="http://www.bytereef.org/mpdecimal/index.html"
7 license=('custom')
8 makedepends=('unzip' 'sed')
9 source=(http://www.bytereef.org/software/${pkgname}/releases/${pkgname}-${pkgver}.tar.gz \
10         http://speleotrove.com/decimal/dectest.zip)
11 noextract=(dectest.zip)
12 md5sums=('83914b1c7395ac704d5f324224dfba67' '5bad77b2007040b4fbd2c6a25a57731b')
14 build() {
15   cd ${srcdir}/${pkgname}-${pkgver}
17   unset CFLAGS
18   unset CXXFLAGS
19   unset LDFAGS
21   ./configure --prefix=/usr || return 1
22   make || return 1
23   cp ../dectest.zip tests
24   grep -v "\$WGET http" tests/gettests.sh > tests/gettests.sh.tmp
25   cat tests/gettests.sh.tmp > tests/gettests.sh
26   rm tests/gettests.sh.tmp
27   make check || return 1
28   make DESTDIR=${pkgdir} install || return 1
30   install -Dm644 ${srcdir}/${pkgname}-${pkgver}/LICENSE.txt ${pkgdir}/usr/share/licenses/$pkgname/LICENSE.txt