blob: be10eb687345199952da20427368a22492fb9566 (
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
|
#original package by:
# Maintainer: carstene1ns <arch carsten-teibes de> - http://git.io/ctPKG
# Contributor: Gaetan Bisson <bisson@archlinux.org>
# Contributors: jdc, rayman2200
pkgname=corsix-th-git
pkgver=0.62.r98.g4e6c9854
pkgrel=1
pkgdesc='Reimplementation of the game engine of Theme Hospital, git version'
url='https://github.com/CorsixTH/CorsixTH'
arch=('i686' 'x86_64' 'armv7h')
license=('MIT')
makedepends=('cmake')
provides=('corsix-th')
conflicts=('corsix-th')
depends=('lua' 'lua-lpeg' 'lua-filesystem' 'sdl2_mixer' 'ffmpeg' 'freepats-general-midi')
install=corsix-th.install
source=("git+https://github.com/CorsixTH/CorsixTH.git"
"CorsixTH.desktop"
"corsix-th.sh")
sha256sums=('SKIP'
'84568693506b208bf3d4cc60f1e830e9e1b236b6cd7032a24437f06176aa57f8'
'3614197a30498774fff4055ee54d82a812a8b88eba353b70c3288a09ff700158')
pkgver() {
cd "CorsixTH"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd CorsixTH
cmake -DCMAKE_BUILD_TYPE=Release -Wno-dev \
-DLUA_PROGRAM_PATH=/usr/bin/lua -DLUA_INCLUDE_DIR=/usr/include -DLUA_LIBRARY=/usr/lib/liblua.so \
-DCMAKE_INSTALL_PREFIX=/usr/share/ .
cd CorsixTH
make
}
package() {
make -C CorsixTH/CorsixTH DESTDIR="$pkgdir/" install
# launcher
install -Dm0755 corsix-th.sh "$pkgdir"/usr/bin/CorsixTH
# license
install -Dm0644 CorsixTH/LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
# .desktop integration
install -Dm0644 CorsixTH.desktop "$pkgdir"/usr/share/applications/CorsixTH.desktop
}
|