updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / msieve / PKGBUILD
blob17623db07dfc3d05414aa58ed46fd84fa5344be9
1 # Maintainer: Gaetan Bisson <bisson@archlinux.org>
3 pkgname=msieve
4 pkgver=1.49
5 pkgrel=1
6 pkgdesc='Library for Factoring Large Integers'
7 url='http://sourceforge.net/projects/msieve/'
8 license=('custom')
9 arch=('i686' 'x86_64')
10 depends=('zlib' 'gmp-ecm')
11 source=("http://downloads.sourceforge.net/project/msieve/msieve/Msieve%20v${pkgver}/msieve${pkgver/./}.tar.gz")
12 sha1sums=('919d97b4f7e4136d9262e3b37c470db880add930')
14 build() {
15         cd "${srcdir}/${pkgname}-${pkgver}"
17         sed -e 's/^CFLAGS = /CFLAGS += /' -i Makefile
18         CFLAGS+=' -fopenmp'
20         make ${CARCH/i686/x86} ECM=1
23 package() {
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