summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 67004cb5faaf7452bb0584ba61f1b6e2fbcfbb4d (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
44
45
46
47
48
49
50
51
52
53
# Maintainer: Katoga <katoga.cz@hotmail.com>
pkgname=omf2097-bin
pkgver=2.1
pkgrel=2
pkgdesc='Fighting game featuring Human Assisted Robots'
arch=('any')
url="http://www.omf2097.com/"
license=('custom')
depends=('dosbox')
makedepends=('unrar')
install="${pkgname}.install"
source=(
	'http://www.omf2097.com/pub/files/omf/omf2097.rar'
	"${pkgname}.desktop"
	"${pkgname}.png"
	"${pkgname}.sh"
	"${pkgname}.conf"
	"${pkgname}.install"
)
sha256sums=(
	'bc2ce50b8ea282b61e9685e883436e9cb4bcf7bacec0a58f0a685f20289f8a13'
	'588777aa553746c6f842fb2971f361505c3399d2e6ec227a045a5d449f405740'
	'1c6f8c4d72390b3e54d9d8ec4a33d0c3888a7e821e45da588a024c6bfe2575e9'
	'57da3428d8df1138df4a60df147588ab02055846180a93f0bfb42301fcadd4a7'
	'85cb3505fd827ed0c731ef3efd193bb79f819b014ea82743ca3ca00a42dfd590'
	'2502046a14dcf0a016f51b4aedd0750ca2ee704416e36d9ce2e28ab2cffb1eb7'
)
noextract=(
	omf2097.rar
)

prepare() {
	unrar x -idq -y omf2097.rar
}

package() {
	mkdir -m 0775 -p ${pkgdir}/opt/${pkgname}/OMF2097
	chown :games ${pkgdir}/opt/${pkgname}/OMF2097

	install -m 0664 -g games ${srcdir}/OMF2097/* ${pkgdir}/opt/${pkgname}/OMF2097/
	install -m 0644 -g games ${srcdir}/${pkgname}.png ${pkgdir}/opt/${pkgname}/${pkgname}.png
	install -m 0644 -g games ${srcdir}/${pkgname}.conf ${pkgdir}/opt/${pkgname}/${pkgname}.conf

	mkdir -p ${pkgdir}/usr/share/applications
	install -m 0644 -D ${srcdir}/${pkgname}.desktop ${pkgdir}/usr/share/applications/

	mkdir -p ${pkgdir}/usr/bin
	install -m 0755 -D ${srcdir}/${pkgname}.sh ${pkgdir}/usr/bin/

	mkdir -p ${pkgdir}/usr/share/licenses/${pkgname}
	install -m 0644 -D ${srcdir}/OMF2097/LICENSE.DOC ${pkgdir}/usr/share/licenses/${pkgname}/EULA
}