blob: 60ee05985aa2c2c28b137693b1b342f309f18213 (
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
62
63
64
65
66
67
68
69
70
|
# Maintainer: zaps166 <spaz16@wp.pl>
pkgname=nfs2se-git
pkgver=v1.4.0.r0.g6fc5caf
pkgrel=1
pkgdesc='Cross-platform wrapper for the Need For Speed™ II SE game with 3D acceleration and TCP protocol!'
arch=('x86_64')
url='https://github.com/zaps166/NFSIISE'
license=('MIT')
source=('git+https://github.com/zaps166/NFSIISE'
'nfs2se')
md5sums=('SKIP'
'50da45b125bd78839b60b9a16989c37f')
machine=$(uname -m)
if [ $machine == "x86_64" ]; then
depends=('lib32-sdl2' 'lib32-libgl')
optdepends=(
'lib32-mesa: Opensource OpenGL drivers'
'lib32-nvidia-utils: NVIDIA drivers'
)
makedepends=('gcc-multilib' 'yasm')
SUBMODULE=src/Asm
else
depends=('sdl2' 'libgl')
makedepends=('clang' 'lld')
COMPILE_ARG=cpp
SUBMODULE=src/Cpp
fi
install=nfs2se-git.install
pkgver()
{
cd $srcdir/NFSIISE
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare()
{
cd $srcdir/NFSIISE
git submodule init
git submodule update $SUBMODULE
}
build()
{
# GL=gl1
# GL=gles2
cd $srcdir/NFSIISE
./compile_nfs $COMPILE_ARG $GL
}
package()
{
mkdir -p $pkgdir/usr/bin
cp $srcdir/nfs2se $pkgdir/usr/bin
mkdir $pkgdir/opt
cp -r "$srcdir/NFSIISE/Need For Speed II SE" $pkgdir/opt/nfs2se
rm -f $pkgdir/opt/nfs2se/*.bat
mkdir -p $pkgdir/usr/share/applications
mv $pkgdir/opt/nfs2se/nfs2se.desktop $pkgdir/usr/share/applications
mkdir -p $pkgdir/usr/share/icons/hicolor/32x32/apps
mv $pkgdir/opt/nfs2se/nfs2se.png $pkgdir/usr/share/icons/hicolor/32x32/apps
}
|