blob: 2a07944c3ef9fbd7eb95c04b1ea8e4c229860397 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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"
}
|