summaryrefslogtreecommitdiff
path: root/pcr/ryzom-data/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/ryzom-data/PKGBUILD')
-rw-r--r--pcr/ryzom-data/PKGBUILD49
1 files changed, 25 insertions, 24 deletions
diff --git a/pcr/ryzom-data/PKGBUILD b/pcr/ryzom-data/PKGBUILD
index 9f33a6794..2665cc411 100644
--- a/pcr/ryzom-data/PKGBUILD
+++ b/pcr/ryzom-data/PKGBUILD
@@ -1,45 +1,46 @@
-# Mantainer: Jorge Araya Navarro <jorgean@lavabit.com>
+# Mantainer: Jorge Araya Navarro <elcorreo@deshackra.com>
pkgname='ryzom-data'
group='ryzom'
pkgver=0.8.0
-pkgrel=1
+pkgrel=2
arch=('any')
url="http://media.ryzom.com/"
license=('CCPL:by-sa')
-makedepends=('rsync' 'p7zip')
-conflicts=('ryzom-data')
+depends=('rsync')
+makedepends=('p7zip')
pkgdesc="An awesome free software 3D MMORPG game. Game data."
-source=("http://sourceforge.net/projects/ryzom/files/ryzom_client.7z/download" "updateryzomdata")
-noextract=("download")
-sha256sums=('fa9e44e1014f4ae8639f1ec092391a41f69fc343ce48dd39b55ffae06ec3291f'
- 'b42f74fd21cdbf6734214e5576dbbe7e4cf171bf5d712011fbea6529bd0123fd')
+source=("http://tempestintheaether.org/public_downloads/ryzom_core_client-data-22-09-2013.7z" "ryzomdata-update.sh")
+sha256sums=('f1110efb49bfb733f290ab5136986036a9f61fb692802714d9e6ec9b7e08f3ec'
+ '116c1c6bfe92bb55a6abf8401c290ef1505781a1cd76f67eb180f781f2034219')
+noextract=("ryzom_core_client-data-22-09-2013.7z")
+install=${pkgname}.install
-package() {
+prepare() {
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/
+ 7z x ryzom_core_client-data-22-09-2013.7z data/ >& /dev/null
+ msg "Extraction completed!"
+ cd "$srcdir/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"
+ rsync -rtzvu --progress --stats --recursive --timeout=30 www.ryzom.com::ryzom/data/ ./
+ msg 'Update completed!'
+}
+package() {
+ cd "$srcdir/data/"
# creating directories
+ install -d -m 755 "$pkgdir/usr/bin/"
+ install -d -m 755 "$pkgdir/usr/share/ryzom/data/"
install -d -m 755 "${pkgdir}/usr/share/ryzom/data/fonts/"
- install -d -m 755 "${pkgdir}/etc/cron.d/"
-
+
+ install -m 644 "$srcdir/ryzomdata-update.sh" "$pkgdir/usr/bin/"
+ chmod +x "$pkgdir/usr/bin/ryzomdata-update.sh"
+
# installing files
install -m 644 fonts/* "${pkgdir}/usr/share/ryzom/data/fonts/"
rm -rf fonts
install -m 644 * "${pkgdir}/usr/share/ryzom/data/"
- install -m 644 ${srcdir}/updateryzomdata "${pkgdir}/etc/cron.d/"
}