summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorLinRuoshui2018-05-13 13:42:38 +0800
committerLinRuoshui2018-05-13 13:42:38 +0800
commit763840b3756d22fe400cf830027cad815aafcfbe (patch)
tree4a2d1adc1d09dfd6ebc4682230e7a1766480b27d /PKGBUILD
parentb1f965d5451549894b3bca23116d008d5a34b5a6 (diff)
downloadaur-gmameui.tar.gz
update source URL
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD28
1 files changed, 18 insertions, 10 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 50bbc27aff5..eb9569f8022 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,19 +1,26 @@
# Contributor: Slash <demodevil5 [AT] yahoo [DOT] com>
pkgname=gmameui
-pkgver=0.2.12
-pkgrel=3
+pkgver=r279.ea144d7
+pkgrel=1
pkgdesc='SDLMAME/XMAME frontend designed to look like MAME32 (fork of GXMAME)'
arch=('i686' 'x86_64')
url='http://gmameui.sourceforge.net/'
license=('GPL')
-depends=('gnome-doc-utils' 'libarchive' 'libglade' 'vte')
-makedepends=('intltool')
-source=("http://sourceforge.net/projects/gmameui/files/gmameui/$pkgver/$pkgname-$pkgver.tar.gz")
-md5sums=('e1f36731b0007501cf4c169aaee2ccc8')
+depends=('gnome-doc-utils' 'libarchive' 'libglade' 'vte-legacy')
+makedepends=('intltool' 'gtkimageview')
+#source=("http://sourceforge.net/projects/gmameui/files/gmameui/$pkgver/$pkgname-$pkgver.tar.gz")
+source=('gmameui::git+https://github.com/sergiomb2/gmameui.git')
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$pkgname"
+# git describe --always --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
build() {
- cd "$srcdir/$pkgname-$pkgver"
+ cd "$srcdir/$pkgname"
# 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
@@ -21,13 +28,14 @@ build() {
# replace individual glib headers with glib.h
/bin/sed -i '34,36d' src/gmameui.c
/bin/sed -i '33 a\#include <glib.h>' src/gmameui.c
-
- ./configure --prefix=/usr --disable-libgnome --enable-joystick --enable-debug
+ autoreconf -fiv
+ intltoolize
+ ./configure --prefix=/usr --enable-joystick --enable-debug
make
}
package() {
- cd "$srcdir/$pkgname-$pkgver"
+ cd "$srcdir/$pkgname"
make DESTDIR="$pkgdir" install
}