blob: b656a7f1bb6961e0e6db1de8d079b7322354ea56 (
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
54
55
56
57
58
59
60
61
|
# Maintainer: tjbp (archlinux@tjbp.net)
# Contributor: PureTryOut
pkgname=openrw-git
pkgver=r1.51b7264
pkgrel=3
epoch=
pkgdesc="A re-implementation of Rockstar Games' Grand Theft Auto III"
arch=('x86_64')
url="https://github.com/rwengine/openrw"
license=('GPL3')
groups=()
depends=('bullet' 'glm' 'libmad' 'openal' 'libsndfile' 'sdl2' 'boost' 'ffmpeg')
makedepends=('git' 'cmake' 'make')
checkdepends=()
optdepends=()
provides=('openrw')
conflicts=('openrw')
replaces=()
backup=()
options=()
install=
changelog=
source=('openrw-git::git+https://github.com/rwengine/openrw.git'
'openrw.desktop')
noextract=()
sha256sums=('SKIP'
'78f96261cf22a5413f4e17480b9cb08ce4da8683fb2f8399018e80c96246d0b0')
validpgpkeys=()
pkgver() {
cd "$pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$pkgname"
git submodule update --init --recursive
}
build() {
cd "$pkgname"
if [[ -d build ]]; then
rm -rf build
fi
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make $MAKEFLAGS
}
package() {
cd "$pkgname"
# The application
install -Dm755 build/rwgame/rwgame "$pkgdir/usr/bin/rwgame"
# .desktop file and icon
install -Dm644 "$srcdir/openrw.desktop" "$pkgdir"/usr/share/applications/openrw.desktop
}
|