diff options
author | graysky | 2018-04-11 17:25:56 -0400 |
---|---|---|
committer | graysky | 2018-04-11 17:25:56 -0400 |
commit | 204aab093cbfabb597bef58bef2bbc0dabe07d39 (patch) | |
tree | 0d6af2ef04a4333dc4709a3ad76d53e5870e60a4 /PKGBUILD | |
parent | 7bba68c930f509ae1aa53eaebfff11b525f6c039 (diff) | |
download | aur-204aab093cbfabb597bef58bef2bbc0dabe07d39.tar.gz |
Update to 294b7-2
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -4,22 +4,17 @@ pkgname=mprime pkgver=294b7 -pkgrel=1 +pkgrel=2 pkgdesc="A GIMPS, distributed computing project client, dedicated to finding Mersenne primes." arch=('x86_64') url="http://www.mersenne.org" license=('custom') depends=('curl' 'hwloc') conflicts=('mprime-bin') -source=("http://www.mersenne.org/ftp_root/gimps/p95v${pkgver}.source.zip" -unfuck_makefile.patch) +source=("http://www.mersenne.org/ftp_root/gimps/p95v${pkgver}.source.zip") sha256sums=('15682e9587af2b86647de9786f97dc8c5d7a4a679a0440f7d1d1936a48c5aa45' 'c94417f35f988e32693f9002792cbf21da85c2345670cb377066c9b799341528') -prepare () { - patch -Np1 -i unfuck_makefile.patch -} - build() { cd "$srcdir/gwnum" make -f make64 @@ -29,6 +24,10 @@ build() { } package() { + CFLAGS="-I.. -I../gwnum -DX86_64 -march=x86-64 -O2 -Wno-unused-result" + CXXFLAGS="$CFLAGS" + LIBS="../gwnum/gwnum.a ../gwnum/gwnum.ld -lm -lpthread $(pkg-config --libs libcurl) -lstdc++ $(pkg-config --static --libs hwloc) -lgmp" + install -Dm755 linux64/mprime "$pkgdir/usr/bin/mprime" # license and documentation |