diff options
author | Carsten Teibes | 2017-06-27 14:10:34 +0200 |
---|---|---|
committer | Carsten Teibes | 2017-06-27 14:10:34 +0200 |
commit | 7e6f606be5cb4d4061c7245fcc9ad0acac4edb17 (patch) | |
tree | f750213072e0079006bb8dfa54694f2a1efa6db0 | |
parent | 6ab8a739860b5ffabff399e4503c59d1562b4c6d (diff) | |
download | aur-7e6f606be5cb4d4061c7245fcc9ad0acac4edb17.tar.gz |
[upd] 0.64.5→0.64.13
Add patch for GCC 7 compatibility
-rw-r--r-- | .SRCINFO | 12 | ||||
-rw-r--r-- | PKGBUILD | 22 | ||||
-rw-r--r-- | raine-gcc7-abs.patch | 32 |
3 files changed, 52 insertions, 14 deletions
@@ -1,6 +1,6 @@ pkgbase = raine pkgdesc = A multiple arcade emulator focused on 680x0 machines like NeoCD and Neo Geo - pkgver = 0.64.5 + pkgver = 0.64.13 pkgrel = 1 url = http://raine.1emulation.com/ arch = i686 @@ -15,10 +15,12 @@ pkgbase = raine optdepends = arcade-command-dat: database with button combinations for special moves in (mostly fighting) games replaces = neoraine options = emptydirs - source = raine-0.64.5.tar.gz::https://github.com/zelurker/raine/archive/c09ecd56ce834bf602107960697a74d6977d0958.tar.gz - source = http://raine.1emulation.com//archive/debian/dists/unstable/main/binary-i386/raine_0.64.5-2_i386.deb - sha256sums = b43acd7c23f742148bf73fe57fc49e344e6392a50c1548590aeceafa04ff5147 - sha256sums = c917d1c17f23901cd160c24f1be0b504590f773b7f791e5a890875162d813d8f + source = raine-0.64.13.tar.gz::https://github.com/zelurker/raine/archive/0.64.13.tar.gz + source = http://raine.1emulation.com//archive/debian/dists/unstable/main/binary-i386/raine_0.64.13_i386.deb + source = raine-gcc7-abs.patch + sha256sums = 0af13e67744ac81f987687a3f83703bc844897a6a1b828a19d82f96dfe8ab719 + sha256sums = 71414fc61c1d26eeccfab4f7319ba9efce19b8276151d3a119fd86c3db0a172b + sha256sums = 396eecb13c8546b55f98094a69dbe8ccab79855e2a3eca58397aedc72308bd59 depends_i686 = sdl_ttf depends_i686 = sdl_image depends_i686 = sdl_sound @@ -3,8 +3,7 @@ # Contributor: robb_force <robb_force@holybuffalo.net> pkgname=raine -pkgver=0.64.5 -_gitver=c09ecd56ce834bf602107960697a74d6977d0958 +pkgver=0.64.13 pkgrel=1 pkgdesc="A multiple arcade emulator focused on 680x0 machines like NeoCD and Neo Geo" url="http://raine.1emulation.com/" @@ -20,10 +19,12 @@ optdepends=('raine-artwork: additional background graphics for some games' 'raine-blend: transparency information for some games' 'arcade-history-dat: database with various information about the loaded rom' 'arcade-command-dat: database with button combinations for special moves in (mostly fighting) games') -source=(raine-$pkgver.tar.gz::"https://github.com/zelurker/raine/archive/$_gitver.tar.gz" - "$url/archive/debian/dists/unstable/main/binary-i386/raine_${pkgver}-2_i386.deb") -sha256sums=('b43acd7c23f742148bf73fe57fc49e344e6392a50c1548590aeceafa04ff5147' - 'c917d1c17f23901cd160c24f1be0b504590f773b7f791e5a890875162d813d8f') +source=(raine-$pkgver.tar.gz::"https://github.com/zelurker/raine/archive/$pkgver.tar.gz" + "$url/archive/debian/dists/unstable/main/binary-i386/raine_${pkgver}_i386.deb" + "raine-gcc7-abs.patch") +sha256sums=('0af13e67744ac81f987687a3f83703bc844897a6a1b828a19d82f96dfe8ab719' + '71414fc61c1d26eeccfab4f7319ba9efce19b8276151d3a119fd86c3db0a172b' + '396eecb13c8546b55f98094a69dbe8ccab79855e2a3eca58397aedc72308bd59') options=('emptydirs') prepare() { @@ -31,7 +32,7 @@ prepare() { mkdir -p raine-bin bsdtar xf data.tar.xz -C raine-bin - cd raine-$_gitver + cd raine-$pkgver # copy bitmaps and fonts from raine's deb package cp -rup "$srcdir"/raine-bin/usr/share/games/raine/bitmaps . cp -rup "$srcdir"/raine-bin/usr/share/games/raine/fonts . @@ -49,14 +50,17 @@ prepare() { # 'detect-cpu' script does not recognize most recent cpus, use generic optimizing echo "_MARCH=-march=${CARCH/x86_64/x86-64} -mtune=generic" > cpuinfo echo "CPU=generic" >> cpuinfo + + # gcc7 compatibility + patch -p1 < "$srcdir"/raine-gcc7-abs.patch } build() { - make -C "$srcdir"/raine-$_gitver #VERBOSE=1 + make -C "$srcdir"/raine-$pkgver #VERBOSE=1 } package() { - cd "$srcdir"/raine-$_gitver + cd "$srcdir"/raine-$pkgver make DESTDIR="$pkgdir" install # doc + license install -d "$pkgdir"/usr/share/{doc,licenses}/raine diff --git a/raine-gcc7-abs.patch b/raine-gcc7-abs.patch new file mode 100644 index 000000000000..42af74051024 --- /dev/null +++ b/raine-gcc7-abs.patch @@ -0,0 +1,32 @@ +diff -Naur raine-0.64.13.orig/source/sdl/console/exec.cpp raine-0.64.13/source/sdl/console/exec.cpp +--- raine-0.64.13.orig/source/sdl/console/exec.cpp 2016-05-19 13:03:43.000000000 +0200 ++++ raine-0.64.13/source/sdl/console/exec.cpp 2017-06-27 14:06:46.650802838 +0200 +@@ -73,7 +73,7 @@ + } else { + int adr = parse(argv[1]),n; + for (n=0; n<used_break; n++) { +- if (abs(adr-breakp[n].adr)<2) { ++ if (abs((int)(adr-breakp[n].adr))<2) { + if (cons) cons->print("already have a breakpoint at %x",breakp[n].adr); + return; + } +diff -Naur raine-0.64.13.orig/source/sdl/gui/tfont.cpp raine-0.64.13/source/sdl/gui/tfont.cpp +--- raine-0.64.13.orig/source/sdl/gui/tfont.cpp 2016-05-19 13:03:43.000000000 +0200 ++++ raine-0.64.13/source/sdl/gui/tfont.cpp 2017-06-27 14:01:36.537194579 +0200 +@@ -73,14 +73,14 @@ + // 1st look for height + while ((entry = readdir(dir))) { + get_font_dimensions(entry->d_name,&w,&h); +- if (abs(h-ideal_height) < abs(besth - ideal_height)) ++ if (abs((int)(h-ideal_height)) < abs((int)(besth - ideal_height))) + besth = h; + } + rewinddir(dir); + // Now look for the best width with this height + while ((entry = readdir(dir))) { + get_font_dimensions(entry->d_name,&w,&h); +- if (h == besth && (abs(w-ideal_width) < abs(bestw-ideal_width))) { ++ if (h == besth && (abs((int)(w-ideal_width)) < abs((int)(bestw-ideal_width)))) { + strcpy(selected, entry->d_name); + bestw = w; + } |