diff options
author | Angelo Theodorou | 2015-07-07 22:13:12 +0100 |
---|---|---|
committer | Angelo Theodorou | 2015-07-07 22:13:12 +0100 |
commit | 4057e6067f4207f006d89af14f6629feffbdfd03 (patch) | |
tree | 10dbed4134303cf24378e96c5820d678d0cd4913 | |
download | aur-4057e6067f4207f006d89af14f6629feffbdfd03.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 27 | ||||
-rw-r--r-- | PKGBUILD | 81 | ||||
-rw-r--r-- | eternallands.changelog | 50 | ||||
-rw-r--r-- | eternallands.desktop | 10 |
4 files changed, 168 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..0cd98d38451e --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,27 @@ +pkgbase = eternallands + pkgdesc = A free 3D MMORPG game with thousands of on-line players + pkgver = 1.9.3 + pkgrel = 1 + url = http://www.eternal-lands.com/ + changelog = eternallands.changelog + arch = i686 + arch = x86_64 + license = custom + makedepends = unzip + makedepends = git + depends = sdl_net + depends = sdl_image + depends = openal + depends = cal3d + depends = libxml2 + depends = libvorbis + depends = libgl + depends = mesa + options = !emptydirs + source = http://www.eternal-lands.com/el_linux_193.zip + source = eternallands.desktop + md5sums = a1d0c7c5983d7c33ee0edc7a4e4867d6 + md5sums = 4564fba195fc39fce438f717dde0ad9e + +pkgname = eternallands + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..ed2645b89d82 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,81 @@ +# Contributor: Adam Griffiths <adam_griffithsAATTdart.net.au> +# Contributor: Todd Maynard <arch@toddmaynard.com> +# Many thanks to AlexExtreme <alex@alex-smith.me.uk> (Frugalware pkg maintainer) from which much of this was borrowed. +# Many thanks to Stefan for patch for x86_64 support and el.ini fix. +# Contributor: Angelo Theodorou <encelo@users.sourceforge.net> + +pkgname=eternallands +pkgver=1.9.3 +pkgrel=1 +pkgdesc="A free 3D MMORPG game with thousands of on-line players" +arch=('i686' 'x86_64') +license=('custom') +url="http://www.eternal-lands.com/" +depends=('sdl_net' 'sdl_image' 'openal' 'cal3d' 'libxml2' 'libvorbis' 'libgl' 'mesa') +makedepends=('unzip' 'git') +options=('!emptydirs') +changelog=eternallands.changelog +source=('http://www.eternal-lands.com/el_linux_193.zip' 'eternallands.desktop') +md5sums=('a1d0c7c5983d7c33ee0edc7a4e4867d6' '4564fba195fc39fce438f717dde0ad9e') + +build() +{ + # Local to the function to avoid version bumping + _gitroot="git://github.com/raduprv/Eternal-Lands.git" + _gitname="elc" + + cd "$srcdir" + msg "Connecting to GIT server...." + + if [ -d $_gitname ] ; then + cd $_gitname && git pull $_gitroot + msg "The local files are updated." + else + git clone $_gitroot $_gitname + fi + + msg "GIT checkout done or server timeout" + msg "Starting make..." + + rm -rf "$srcdir/$_gitname-build" + git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build" + cd "$srcdir/$_gitname-build" + git checkout d151c3d12c5984b3a2a953153811bf9961573374 + + # Compile the client... + if [ "$CARCH" == "x86_64" ]; then + sed -i "s|i686|x86-64|" make.defaults + sed -i "s|OPTIONS = |OPTIONS = -DX86_64 |" Makefile.linux + fi + sed -i "s@OPTIONS = @OPTIONS = -DDATA_DIR="\\\\\"/usr/share/eternallands/"\\\\\" @g" Makefile.linux + sed -i "s@^LDFLAGS=@LDFLAGS=-lstdc++ -lX11 @" Makefile.linux + make -f Makefile.linux release +} + +package() { + cd "$srcdir" + + mkdir -p "${pkgdir}/usr/bin" + mkdir -p "${pkgdir}/usr/share/licenses/eternallands/" + mkdir -p "${pkgdir}/usr/share/applications" + mkdir -p "${pkgdir}/usr/share/pixmaps" + mkdir -p "${pkgdir}/usr/share/eternallands" + + install -m755 elc-build/el.x86.linux.bin "${pkgdir}/usr/bin/el" + install -m644 elc-build/eternal_lands_license.txt "${pkgdir}/usr/share/licenses/eternallands/" + install -m644 elc-build/elc.png "${pkgdir}/usr/share/pixmaps/eternallands.png" + install -m644 eternallands.desktop "${pkgdir}/usr/share/applications" + + cd el_linux + + # Compress textures and maps + find \( -name *.bmp -or -name *.elm \) -exec gzip {} \; + + for dir in 2dobjects 3dobjects actor_defs animations languages maps meshes particles shaders skeletons skybox textures; do + cp -R ${dir} "${pkgdir}/usr/share/eternallands/" + done + + for file in *.ini *.txt *.lst *.xml; do + install -m644 ${file} "${pkgdir}/usr/share/eternallands/" + done +} diff --git a/eternallands.changelog b/eternallands.changelog new file mode 100644 index 000000000000..17506782fb50 --- /dev/null +++ b/eternallands.changelog @@ -0,0 +1,50 @@ +2012-02-14 Angelo "Encelo" Theodorou <encelo@users.sourceforge.net> + + * PKGBUILD : + Added the changelog directive + Changed GIT repository from BerliOS to GitHub + LDFLAGS modified to link against X11 and stdc++ + +2011-06-23 Angelo "encelo" Theodorou <encelo@users.sourceforge.net + + * PKGBUILD : + Added a package function + Building via the GIT repository + +2010-04-05 Angelo "encelo" Theodorou <encelo@users.sourceforge.net + + * PKGBUILD : + There are no more 'custom' and 'tiles' data directories + +2009-01-11 Angelo "encelo" Theodorou <encelo@users.sourceforge.net + + * PKGBUILD : + Description changed + Using the !emptydirs option + +2008-07-19 Angelo "encelo" Theodorou <encelo@users.sourceforge.net + + * PKGBUILD : + Compressing textures and maps + +2008-07-17 Angelo "encelo" Theodorou <encelo@users.sourceforge.net> + + * PKGBUILD : + cvs added as a make dependency + +2008-03-30 Angelo "encelo" Theodorou <encelo@users.sourceforge.net> + + * PKGBUILD : + Using $srcdir and $pkgdir + ChangeLog format adapted to official prototype + Icon installed from the CVS repository + +2008-01-18 Angelo "encelo" Theodorou <encelo@users.sourceforge.net> + + * PKGBUILD: + Binary compiled from tagged CVS repository + Dependencies array corrected + Changed permissions for some installed files + Icon installed from inside the game archive + Description and URL changed + This ChangeLog added ;-) diff --git a/eternallands.desktop b/eternallands.desktop new file mode 100644 index 000000000000..03e0b81766b6 --- /dev/null +++ b/eternallands.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Encoding=UTF-8 +Categories=Application;Game; +Exec=el +Icon=eternallands.png +StartupNotify=false +Terminal=false +Type=Application +Name=Eternal Lands +Comment=3D MMORPG |