1 # Maintainer: Gaetan Bisson <bisson@archlinux.org>
6 pkgdesc='Library for Factoring Large Integers'
7 url='http://sourceforge.net/projects/msieve/'
10 depends=('zlib' 'gmp-ecm')
11 source=("http://downloads.sourceforge.net/project/msieve/msieve/Msieve%20v${pkgver}/msieve${pkgver/./}.tar.gz")
12 sha1sums=('919d97b4f7e4136d9262e3b37c470db880add930')
15 cd "${srcdir}/${pkgname}-${pkgver}"
17 sed -e 's/^CFLAGS = /CFLAGS += /' -i Makefile
20 make ${CARCH/i686/x86} ECM=1
24 cd "${srcdir}/${pkgname}-${pkgver}"
26 install -Dm755 msieve "${pkgdir}"/usr/bin/msieve
27 install -Dm544 Readme "${pkgdir}"/usr/share/doc/msieve/Readme
28 install -d "${pkgdir}"/usr/share/licenses/msieve; ln -s /usr/share/doc/msieve/Readme "${pkgdir}"/usr/share/licenses/msieve/Readme