summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 134e80b899615e3f9762ba851fdab26bc172cf17 (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
# Maintainer: Electric Prism <electricprism@gmail.com>
# Contributor: Electric Prism <electricprism@gmail.com>
# Contributor: Michael DeGuzis <mdeguzis@gmail.com>

pkgname=ges-git
pkgver=r149.c6bd265
pkgrel=1
pkgdesc=" (WIP!) Multiplayer Only FPS. A recreation of GoldenEye64 as a Half-Life 2 mod using Source Engine SDK 2013."
arch=('i686')
url="https://www.geshl2.com/"
license=('GPLv3')
makedepends=('cmake' 'boost-libs' 'boost' 'git' 'gcc' 'glibc' 'libstdc++5')
source=('ges-git::git+https://github.com/goldeneye-source/ges-code.git'
	'python::git+https://github.com/python-cmake-buildsystem/python-cmake-buildsystem.git')
sha256sums=('SKIP'
	    'SKIP')
provides=('ges-git')
conflicts=('ges')

pkgver() {

  cd "${pkgname}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"

}
prepare()
{

  # Enter Package Source
  cd "${pkgname}"

  # Init submodules
  git submodule init thirdparty/python
  git config submodule.python.url ../python
  git submodule update thirdparty/python

  # Setup build environment
  if [[ -d build ]]; then
  	rm -rf build
  fi

  mkdir build

}

build()
{

  cd "${pkgname}/build"
  cmake -DCMAKE_INSTALL_PREFIX=${HOME}/.local/share/Steam/steamapps/sourcemods/gesource ..
  make
  make DESTDIR="${pkgdir}" install

}

package()
{

  # TODO
  cd "${srcdir}/${pkgname}/build"
  install -m 755 client.so "${pkgdir}"/usr/bin/
  install -m 755 server.so "${pkgdir}"/usr/bin/

}