4 pkgdesc="Package for correctly-rounded arbitrary precision decimal floating point arithmetic"
6 url="http://www.bytereef.org/mpdecimal/index.html"
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')
15 cd ${srcdir}/${pkgname}-${pkgver}
21 ./configure --prefix=/usr || 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