summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 549b20a60e4ec8fd70c557f644f597bacf1060b2 (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.184
pkgrel=1
_srcver=0184
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://pugsy.myzen.co.uk/download/cheat${_srcver}.zip")
install=sdlmame-cheats.install
sha1sums=('SKIP')

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"
}