diff options
author | François Guerraz | 2018-10-18 09:22:36 +0100 |
---|---|---|
committer | François Guerraz | 2018-10-18 09:22:36 +0100 |
commit | 529fb6d6f22f3dd7a69758094586640d4b5c45ba (patch) | |
tree | 43b9b86e86a12d625e8552d1820855d17c7f0c8f | |
parent | e7f8a3c572d892196a8f6678ea50844e3870ad15 (diff) | |
download | aur-529fb6d6f22f3dd7a69758094586640d4b5c45ba.tar.gz |
Fix 64bit build
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 13 | ||||
-rw-r--r-- | fix-64-bit-segfault.patch | 13 |
3 files changed, 26 insertions, 4 deletions
@@ -1,12 +1,14 @@ pkgbase = snaphu pkgdesc = Statistical-Cost, Network-Flow Algorithm for Phase Unwrapping pkgver = 1.4.2 - pkgrel = 1 + pkgrel = 2 url = https://web.stanford.edu/group/radar/softwareandlinks/sw/snaphu/ arch = x86_64 license = custom source = https://web.stanford.edu/group/radar/softwareandlinks/sw/snaphu/snaphu-v1.4.2.tar.gz + source = fix-64-bit-segfault.patch sha256sums = 30e7be7889fc2d2ce8606de01a29f2d908de5e8eb8e32619cf6d2deff9186eb7 + sha256sums = 75b163cb6f2ba5de3a240d5d853c25d92431b9591de2ab9eedb81c0337a2704b pkgname = snaphu @@ -1,7 +1,7 @@ # Maintainer: François Guerraz <kubrick@fgv6.net> pkgname=snaphu pkgver=1.4.2 -pkgrel=1 +pkgrel=2 pkgdesc="Statistical-Cost, Network-Flow Algorithm for Phase Unwrapping" arch=('x86_64') url="https://web.stanford.edu/group/radar/softwareandlinks/sw/snaphu/" @@ -17,9 +17,16 @@ backup=() options=() install= changelog= -source=( "https://web.stanford.edu/group/radar/softwareandlinks/sw/snaphu/$pkgname-v$pkgver.tar.gz" ) +source=( "https://web.stanford.edu/group/radar/softwareandlinks/sw/snaphu/$pkgname-v$pkgver.tar.gz" + 'fix-64-bit-segfault.patch' ) noextract=( ) -sha256sums=('30e7be7889fc2d2ce8606de01a29f2d908de5e8eb8e32619cf6d2deff9186eb7') +sha256sums=( '30e7be7889fc2d2ce8606de01a29f2d908de5e8eb8e32619cf6d2deff9186eb7' + '75b163cb6f2ba5de3a240d5d853c25d92431b9591de2ab9eedb81c0337a2704b' ) + +prepare() { + cd ${pkgname}-v${pkgver} + patch -p1 < ${srcdir}/fix-64-bit-segfault.patch +} build() { cd ${pkgname}-v${pkgver}/src/ diff --git a/fix-64-bit-segfault.patch b/fix-64-bit-segfault.patch new file mode 100644 index 000000000000..6b9e6e4a007c --- /dev/null +++ b/fix-64-bit-segfault.patch @@ -0,0 +1,13 @@ +Fixes the issue that happens on 64 bit sytems, ref: +https://groups.yahoo.com/neo/groups/doris_users/conversations/topics/4248 +--- a/src/snaphu_io.c 2003-02-23 08:13:46.000000000 +0000 ++++ b/src/snaphu_io.c 2018-10-18 09:08:59.423398983 +0100 +@@ -22,7 +22,7 @@ + #include <sys/stat.h> + #include <sys/types.h> + #include <sys/wait.h> +-#include <sys/time.h> ++#include <time.h> + #include <sys/resource.h> + + #include "snaphu.h" |