blob: 29e810f18d9cb949c0c276d081d9d8633db874aa (
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
|
pkgname=revc-git
pkgver=1
pkgrel=1
pkgdesc="Grand Theft Auto Vice City reverse engineered"
arch=('x86_64')
depends=('openal' 'glew' 'glfw' 'libsndfile' 'mpg123')
makedepends=('git' 'cmake' 'premake')
provides=('revc')
license=('none')
install=$pkgname.install
source=(
'git+https://github.com/erorcun/re3.git#branch=miami'
'git+https://github.com/aap/librw.git'
'git+https://github.com/xiph/ogg.git'
'git+https://github.com/xiph/opus.git'
'git+https://github.com/xiph/opusfile.git'
'launch.sh'
'GTAVC.desktop')
md5sums=(
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'9eb2aff2687f8cc735ea93e0460f07e0'
'2991b7cf6751274bfdccc7b6f0272129')
pkgver() {
cd "$srcdir/re3"
printf "%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$srcdir/re3"
git submodule init
for submod in librw ogg opus opusfile
do
git config "submodule.vendor/$submod.url" "../$submod"
done
git submodule update
}
build() {
cd "$srcdir/re3"
premake5 --with-librw gmake2
cd "build"
"./../printHash.sh" "./../src/extras/GitSHA1.cpp"
make O=. config=release_linux-amd64-librw_gl3_glfw-oal
}
package() {
cd "$srcdir/re3/bin/linux-amd64-librw_gl3_glfw-oal/Release"
install -d $pkgdir/opt/reVC
install -m755 reVC $pkgdir/opt/reVC/
install -m755 $srcdir/launch.sh $pkgdir/opt/reVC/
install -D -m644 $srcdir/GTAVC.desktop $pkgdir/usr/share/applications/GTAVC.desktop
}
|