summaryrefslogtreecommitdiff
path: root/pcr/ryzom-data/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-07-22 00:04:51 +0000
committerroot <root@rshg054.dnsready.net>2012-07-22 00:04:51 +0000
commite4d2743138eaca146b1a01a7815facdb3d271d88 (patch)
treeadfc39f3d6e7081629f4fb9ed391f3155617b021 /pcr/ryzom-data/PKGBUILD
parent5d90c7e7b2760bbf7b048dca31384e9f53a97c61 (diff)
Sun Jul 22 00:04:51 UTC 2012
Diffstat (limited to 'pcr/ryzom-data/PKGBUILD')
-rw-r--r--pcr/ryzom-data/PKGBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/pcr/ryzom-data/PKGBUILD b/pcr/ryzom-data/PKGBUILD
new file mode 100644
index 000000000..272db5c07
--- /dev/null
+++ b/pcr/ryzom-data/PKGBUILD
@@ -0,0 +1,43 @@
+# Mantainer: Jorge Araya Navarro <jorgean@lavabit.com>
+pkgname='ryzom-data'
+group='ryzom'
+pkgver=0.8.0
+pkgrel=1
+arch=('any')
+url="http://media.ryzom.com/"
+license=('CCPL:by-sa')
+makedepends=('rsync' 'p7zip-libre')
+conflicts=('ryzom-data')
+pkgdesc="An awesome free software 3D MMORPG game. Game data."
+source=("http://sourceforge.net/projects/ryzom/files/ryzom_client.7z/download")
+noextract=("download")
+sha256sums=('fa9e44e1014f4ae8639f1ec092391a41f69fc343ce48dd39b55ffae06ec3291f')
+
+package() {
+ cd "$srcdir/"
+
+ if [[ -d "data" ]]; then
+ rm -rf data
+ fi
+
+ mv "download" "ryzom_client.7z"
+ msg "Extracting game data..."
+ 7z x ryzom_client.7z ryzom/data/ >& /dev/null
+ cd ryzom/data/
+
+ msg "Updating the official Ryzom game data, this can take a while..."
+ rsync -rtzvu --progress --stats --recursive --timeout=30 www.ryzom.com::ryzom/data/ ./ >& /dev/null
+ msg 'Update completed...'
+
+ cd "$srcdir/ryzom/data"
+
+ # creating directories
+ install -d -m 755 "${pkgdir}/usr/share/ryzom/data/fonts/"
+
+ # installing files
+ install -m 644 fonts/* "${pkgdir}/usr/share/ryzom/data/fonts/"
+ rm -rf fonts
+
+ install -m 644 * "${pkgdir}/usr/share/ryzom/data/"
+}
+