summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlashbunny2012-02-14 19:12:41 -0500
committerSlashbunny2012-02-14 19:12:41 -0500
commit6daed39254ca934cc2b6aa6f1b501289ad55576f (patch)
tree8b5ac18cbcb481125502500f6066cb96218b8488
parent791e47586b04537527d6f21e44ec1db445819a7c (diff)
downloadaur-6daed39254ca934cc2b6aa6f1b501289ad55576f.tar.gz
Modernized PKGBUILD with package() function. Fixed compiling error (libarchive deprecated archive_read_data_into_buffer()). Bump pkgrel
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD12
2 files changed, 11 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 2413fadbf36..a56cb27b2ee 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = gmameui
pkgdesc = SDLMAME/XMAME frontend designed to look like MAME32 (fork of GXMAME)
pkgver = 0.2.12
- pkgrel = 1
+ pkgrel = 2
url = http://gmameui.sourceforge.net/
arch = i686
arch = x86_64
diff --git a/PKGBUILD b/PKGBUILD
index 74bd5e3650e..5967956a5e6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=gmameui
pkgver=0.2.12
-pkgrel=1
+pkgrel=2
pkgdesc='SDLMAME/XMAME frontend designed to look like MAME32 (fork of GXMAME)'
arch=('i686' 'x86_64')
url='http://gmameui.sourceforge.net/'
@@ -15,7 +15,15 @@ md5sums=('e1f36731b0007501cf4c169aaee2ccc8')
build() {
cd "$srcdir/$pkgname-$pkgver"
- ./configure --prefix=/usr --disable-libgnome --enable-joystick
+ # archive_read_data_into_buffer() is deprecated in libarchive
+ /bin/sed -i 's/archive_read_data_into_buffer/archive_read_data/' src/gmameui-zip-utils.c
+
+ ./configure --prefix=/usr --disable-libgnome --enable-joystick --enable-debug
make
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+
make DESTDIR="$pkgdir" install
}