diff options
author | doragasu | 2016-12-06 15:37:57 +0100 |
---|---|---|
committer | doragasu | 2016-12-06 15:37:57 +0100 |
commit | 0dfd647fdfb36cf77050e1f614e37a91644aa6a7 (patch) | |
tree | b5cf7e48686b93d7d38d41b5a3c0a43bb5821fe2 | |
parent | 18bdd78a4bf1ff6700e9a6c9420a8dd3d9908487 (diff) | |
download | aur-0dfd647fdfb36cf77050e1f614e37a91644aa6a7.tar.gz |
Added ultraspeed patch and fixed build error with latest g++.
-rw-r--r-- | PKGBUILD | 12 | ||||
-rw-r--r-- | error_t.patch | 12 |
2 files changed, 20 insertions, 4 deletions
@@ -2,7 +2,7 @@ pkgname=gbcflsh pkgver=1.1 -pkgrel=2 +pkgrel=3 pkgdesc="GameBoy Cart Flasher" arch=('i686' 'x86_64') url="http://sourceforge.net/projects/gbcf" @@ -11,21 +11,25 @@ groups=() depends=('qt4') provides=('gbcflsh') conflicts=('gbcflsh') -install=("$pkgname.install") +install="$pkgname.install" source=(http://downloads.sourceforge.net/gbcf/${pkgname}_${pkgver}_src.tar.gz gbcflsh.desktop config.patch - ultraspeed.patch) + ultraspeed.patch + error_t.patch) md5sums=('a2c6c1e0a9e4c4ba64631e0f66989dfc' 'd6c39e134228d827d26db6d72fd65e85' 'f4674e2030d797d1ec8a9d5603a8e97c' - '0fdff2428687a4e9f0eb774a6fbfde4f') + '0fdff2428687a4e9f0eb774a6fbfde4f' + '27fc93a9f40bbdb0d242c69f6c00aa23') build() { # Patch to install config files in /usr/share/gbcf instead of ~/config patch -p0 < config.patch # Patch to fix build errors and add -ultraspeed (for 1.5 Mbps). patch -p0 < ultraspeed.patch + # Patch to rename error_t already defined in errno.h + patch -p0 < error_t.patch cd "$srcdir/gbcflsh_1.1_src" qmake-qt4 diff --git a/error_t.patch b/error_t.patch new file mode 100644 index 000000000000..36e2d9f5508b --- /dev/null +++ b/error_t.patch @@ -0,0 +1,12 @@ +diff -ruN gbcflsh_1.1_src.orig/src/const.h gbcflsh_1.1_src/src/const.h +--- gbcflsh_1.1_src.orig/src/const.h 2016-12-06 15:28:19.006226548 +0100 ++++ gbcflsh_1.1_src/src/const.h 2016-12-06 15:28:34.782848109 +0100 +@@ -32,7 +32,7 @@ + #endif + + /* return values and errors */ +-enum error_t ++enum _error + { TIMEOUT = -1, FILEERROR_O = -2, FILEERROR_W = -3, FILEERROR_R = + -4, SEND_ERROR = -5, + BAD_PACKET = -6, BAD_PARAMS = -7, PORT_ERROR = -8, WRONG_SIZE = -9 |