diff options
Diffstat (limited to 'pcr/uzem')
-rw-r--r-- | pcr/uzem/PKGBUILD | 22 | ||||
-rw-r--r-- | pcr/uzem/uzem-c++14.patch | 11 |
2 files changed, 26 insertions, 7 deletions
diff --git a/pcr/uzem/PKGBUILD b/pcr/uzem/PKGBUILD index b9a3354ea..e4853ba21 100644 --- a/pcr/uzem/PKGBUILD +++ b/pcr/uzem/PKGBUILD @@ -4,25 +4,33 @@ _pkgname=uzebox pkgname=uzem pkgver=3.3 -pkgrel=2 +pkgrel=3 pkgdesc="A ${_pkgname^} 8-bit game console emulator" url="http://belogic.com/$_pkgname" arch=('i686' 'x86_64') license=('GPL3') depends=('sdl') -source=("https://github.com/${_pkgname^}/$_pkgname/archive/$_pkgname-$pkgver.tar.gz") -sha256sums=('d6f5d302df3d58eb536d706e6a830618ac72157bfe15c9c2b2025e4f3091bc38') +options=(!debug) +source=("https://github.com/${_pkgname^}/$_pkgname/archive/$_pkgname-$pkgver.tar.gz" + "uzem-c++14.patch") +sha256sums=('d6f5d302df3d58eb536d706e6a830618ac72157bfe15c9c2b2025e4f3091bc38' + '5ed1b4f9faa347b8ac6001dc664db98798c77a6fb02ac845df25a7a89770b962') + +prepare() { + cd "$srcdir"/$_pkgname-$_pkgname-$pkgver + patch -Np1 -i "$srcdir"/uzem-c++14.patch +} build() { - cd $srcdir/$_pkgname-$_pkgname-$pkgver/tools/$pkgname + cd "$srcdir"/$_pkgname-$_pkgname-$pkgver/tools/$pkgname make } package() { - cd $srcdir/$_pkgname-$_pkgname-$pkgver + cd "$srcdir"/$_pkgname-$_pkgname-$pkgver install -d "$pkgdir/usr/bin" - install -Dm755 $srcdir/$_pkgname-$_pkgname-$pkgver/tools/$pkgname/${pkgname} $pkgdir/usr/bin - install -Dm755 $srcdir/$_pkgname-$_pkgname-$pkgver/tools/$pkgname/${pkgname}dbg $pkgdir/usr/bin + install -Dm755 "$srcdir"/$_pkgname-$_pkgname-$pkgver/tools/$pkgname/${pkgname} "$pkgdir"/usr/bin + install -Dm755 "$srcdir"/$_pkgname-$_pkgname-$pkgver/tools/$pkgname/${pkgname}dbg "$pkgdir"/usr/bin # license install -Dm644 gpl-3.0.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } diff --git a/pcr/uzem/uzem-c++14.patch b/pcr/uzem/uzem-c++14.patch new file mode 100644 index 000000000..4a95664a6 --- /dev/null +++ b/pcr/uzem/uzem-c++14.patch @@ -0,0 +1,11 @@ +--- a/tools/uzem/gdbserver.h.orig 2019-02-20 16:01:50.438170989 +0100 ++++ b/tools/uzem/gdbserver.h 2019-02-20 16:02:53.561503233 +0100 +@@ -66,7 +66,7 @@ class Breakpoints: public vector<dword> + #define GET_BIG_ENDIAN16(byte1,byte2) ((byte2 << 8) | byte1)
+
+ #ifdef USE_GDBSERVER_DEBUG
+- #define gdb_debug(fmt,...) fprintf(stderr,"[GDB] "fmt, ##__VA_ARGS__)
++ #define gdb_debug(fmt,...) fprintf(stderr,"[GDB] "/**/fmt, ##__VA_ARGS__)
+ #else
+ #define gdb_debug(fmt,...)
+ #endif
|