summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4f6b76ff263bb1490547ac2986a7634656c7fc1a (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
# Maintainer:  Martin C. Doege <mdoege at compuserve dot com>
# Contributor: Anton Shestakov <engored*ya.ru>
# Contributor: listx <linusarver <at> gmail <dot> com>

pkgname=sdlmame-cheats
pkgver=0.187
pkgrel=1
_srcver=0187
pkgdesc='Official XML Cheat Collection for MAME'
url='http://www.mamecheat.co.uk/'
license=('unknown')
arch=('any')
depends=('sdlmame>=0.145u1') # XML cheat engine since 0.127, 7z support since 0.145u1
optdepends=("sdlmame>=$pkgver: this package is best used with an up-to-date version of sdlmame.")
makedepends=('unzip')
source=("http://cheat.retrogames.com/download/cheat${_srcver}.zip")
install=sdlmame-cheats.install
sha1sums=('45077766f3fed69d0499ea88abf08de2c1b40afb')

build() {
  unzip -of "cheat${_srcver}.zip"
}

package() {
  install -Dm644 cheat.7z "$pkgdir/usr/share/sdlmame/cheat.7z"
  install -Dm644 cheat.txt "$pkgdir/usr/share/doc/sdlmame-cheats/cheat.txt"
  install -Dm644 "!README_FIRST!!.txt" "$pkgdir/usr/share/doc/sdlmame-cheats/!README_FIRST!!.txt"
}