diff options
Diffstat (limited to 'pcr/ryzom-hg/SRCBUILD')
-rw-r--r-- | pcr/ryzom-hg/SRCBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/pcr/ryzom-hg/SRCBUILD b/pcr/ryzom-hg/SRCBUILD new file mode 100644 index 000000000..7758cd518 --- /dev/null +++ b/pcr/ryzom-hg/SRCBUILD @@ -0,0 +1,39 @@ +# Maintainer: Jorge Araya Navarro <jorgean@lavabit.com> +pkgname=ryzom +pkgver=20130706 +pkgrel=2 +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') |