summaryrefslogtreecommitdiff
path: root/pcr/ryzom-hg/SRCBUILD
blob: a04662b0d663b3ae1570b39fcd6313c382583cae (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
# Maintainer: Jorge Araya Navarro <jorgean@lavabit.com>
pkgname=("ryzom-hg")
pkgver=20130708
pkgrel=3
pkgdesc="An awesome free software 3D MMORPG game"
arch=(any)
url="https://www.ryzom.com/"
license=('AGPL3')
makedepends=('mercurial')

source=("ryzom.sh"
  "ryzom.desktop")

_hgroot='https://bitbucket.org/ryzom/ryzomcore'
_hgrepo='ryzomcore'

build() {
  cd "$srcdir"
  msg "Connecting to Mercurial server...."

  if [[ -d "$_hgrepo" ]]; then
    cd "$_hgrepo"
    hg pull -u
    msg "The local files are updated."
  else
    hg clone "$_hgroot" "$_hgrepo"
  fi

  msg "Mercurial checkout done or server timeout"
}

package() {
  PKGEXT=${SRCEXT}
  PKGDEST=${SRCDEST}
  cp ${srcdir}/ryzom.sh ${pkgdir}/
  cp ${srcdir}/ryzom.desktop ${pkgdir}/
  cp -a ${srcdir}/ryzomcore/code ${pkgdir}/
}
sha256sums=('d3d8286f5b60a63cbda83795cbe1a1d6e1442f33116502cc6563f8db86e458b6'
            '722c60ceb198214620b11a0866f458578e1128d39e63274ea8b43c1ed96ff196')