summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGianluca Pettinello2021-10-09 22:33:26 +0200
committerGianluca Pettinello2021-10-09 22:33:26 +0200
commit2edb1ceb24cbede47d0d0a7f52e09e8bc5011b73 (patch)
treeb0676e16015fc41a257a47dadf0a2a46b15c5a91
downloadaur-kmame-git.tar.gz
New package kmame
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD43
2 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..609cf419951
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = kmame-git
+ pkgdesc = Frontend for MAME based on mamepgui
+ pkgver = r79.4875338
+ pkgrel = 1
+ arch = x86_64
+ license = GPL-2
+ makedepends = git
+ depends = qt5-base
+ depends = quazip
+ optdepends = mame
+ source = kmame::git+https://invent.kde.org/gianlucapettinello/kmame.git
+ md5sums = SKIP
+
+pkgname = kmame-git
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..2a07944c3ef
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,43 @@
+# Maintainer: Gianluca Pettinello <g_pet@hotmail.com>
+
+pkgname=kmame-git
+pkgver=r79.4875338
+pkgrel=1
+pkgdesc="Frontend for MAME based on mamepgui"
+arch=('x86_64')
+license=('GPL-2')
+depends=('qt5-base' 'quazip')
+makedepends=('git')
+optdepends=('mame')
+source=('kmame::git+https://invent.kde.org/gianlucapettinello/kmame.git')
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/${pkgname%-git}"
+
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ cd "$srcdir/${pkgname%-git}"
+}
+
+build() {
+ cd "$srcdir/${pkgname%-git}"
+
+ # build included liblzma.a (system one is not compatible)
+ cd lzma
+ qmake
+ make
+
+ # build kmame
+ cd ..
+ lrelease kmame.pro
+ qmake
+ make
+}
+
+package() {
+ # install executable
+ install -Dm755 "$srcdir/${pkgname%-git}/bin/kmame" "$pkgdir/usr/bin/kmame"
+}