summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d62cd41d24d4deecc57fbd73b9764e36a50d32ea (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
# Maintainer: Eduardo Vazquez <lalohao@gmail.com>
pkgname=forgottenserver-git
pkgver=r2167.ebe14b8
pkgrel=1
license=('GPL')
pkgdesc=" A free and open-source MMORPG server emulator written in C++"
url="https://github.com/otland/forgottenserver"
arch=('i686' 'x86_64')
depends=('git' 'cmake' 'lua' 'gmp' 'boost' 'boost-libs' 'libmariadbclient')
makedepends=('git' 'cmake')
source=("git://github.com/otland/forgottenserver.git")
md5sums=('SKIP')

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

build() {
  mv forgottenserver /tmp/
  cd /tmp/forgottenserver
  rm -rf build
  mkdir build
  cd build
  cmake ..
  make
}

package() {
  cd /tmp/forgottenserver/build/
  echo "Forgottenserver has been compiled succesfully!"
  echo "Check dir for binary:"
  pwd
}