From e3c21a8456cf86bf955262b71af2bfe4afd25ccc Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sun, 22 Aug 2010 19:33:54 +0200 Subject: mass commit everything Signed-off-by: Florian Pritz --- 0ad/0ad-editor.desktop | 10 ++++++++ 0ad/0ad-editor.sh | 3 +++ 0ad/0ad.desktop | 8 +++++++ 0ad/0ad.install | 21 +++++++++++++++++ 0ad/0ad.png | Bin 0 -> 32959 bytes 0ad/0ad.sh | 3 +++ 0ad/PKGBUILD | 62 +++++++++++++++++++++++++++++++++++++++++++++++++ 7 files changed, 107 insertions(+) create mode 100644 0ad/0ad-editor.desktop create mode 100644 0ad/0ad-editor.sh create mode 100644 0ad/0ad.desktop create mode 100644 0ad/0ad.install create mode 100644 0ad/0ad.png create mode 100644 0ad/0ad.sh create mode 100644 0ad/PKGBUILD (limited to '0ad') diff --git a/0ad/0ad-editor.desktop b/0ad/0ad-editor.desktop new file mode 100644 index 0000000..cded424 --- /dev/null +++ b/0ad/0ad-editor.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Encoding=UTF-8 +Categories=Application;Game; +Name=0 A.D. Editor +Name[es]=Editor de 0 A.D. +Name[gl]=Editor do 0 A.D. +Icon=0ad +Exec=0ad-editor +Terminal=false +Type=Application diff --git a/0ad/0ad-editor.sh b/0ad/0ad-editor.sh new file mode 100644 index 0000000..3568b28 --- /dev/null +++ b/0ad/0ad-editor.sh @@ -0,0 +1,3 @@ +#!/bin/sh +cd /opt/0ad/system +./pyrogenesis -editor diff --git a/0ad/0ad.desktop b/0ad/0ad.desktop new file mode 100644 index 0000000..0f527f3 --- /dev/null +++ b/0ad/0ad.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Encoding=UTF-8 +Categories=Application;Game; +Name=0 A.D. +Icon=0ad +Exec=0ad +Terminal=false +Type=Application diff --git a/0ad/0ad.install b/0ad/0ad.install new file mode 100644 index 0000000..bdc8043 --- /dev/null +++ b/0ad/0ad.install @@ -0,0 +1,21 @@ +# arg 1: the new package version +post_install() { +cat << EOF +Note: +==> In order to play the game, execute it as follows: +==> 0ad +==> You can also run the game editor with this command: +==> 0ad-editor +==> Have fun! +EOF +} + +# arg 1: the new package version +# arg 2: the old package version +post_upgrade() { + post_install $1 +} + +op=$1 +shift +$op $* \ No newline at end of file diff --git a/0ad/0ad.png b/0ad/0ad.png new file mode 100644 index 0000000..5708568 Binary files /dev/null and b/0ad/0ad.png differ diff --git a/0ad/0ad.sh b/0ad/0ad.sh new file mode 100644 index 0000000..56ff4d8 --- /dev/null +++ b/0ad/0ad.sh @@ -0,0 +1,3 @@ +#!/bin/sh +cd /opt/0ad/system +./pyrogenesis $* diff --git a/0ad/PKGBUILD b/0ad/PKGBUILD new file mode 100644 index 0000000..b024fcf --- /dev/null +++ b/0ad/PKGBUILD @@ -0,0 +1,62 @@ +# Maintainer: Adrián Chaves Fernández (Gallaecio) + +pkgname=0ad +pkgver=alpha_1 +_pkgver=r07970-alpha +pkgrel=5 +pkgdesc="Cross-platform, 3D and historically-based real-time strategy game" +arch=('i686' 'x86_64') +url="http://wildfiregames.com/0ad" +license=('GPL2' 'CCPL') +depends=('binutils' 'boost' 'crypto++' 'devil' 'enet-old' 'fam' 'libogg' 'libpng' 'libvorbis' 'libxml2' 'mesa' 'nasm' 'openal' 'sdl' 'wxgtk' 'zip' 'zlib') +conflicts=('0ad-svn') +provides=('0ad') +source=("http://releases.wildfiregames.com/$pkgname-$_pkgver-unix-build.tar.xz" + "http://releases.wildfiregames.com/$pkgname-$_pkgver-unix-data.tar.xz" + "${pkgname}.install" + "${pkgname}.sh" + "${pkgname}-editor.sh" + "${pkgname}.desktop" + "${pkgname}-editor.desktop" + "${pkgname}.png") +md5sums=('75a4a308c75a836ae61112b63b4f8b36' + '2b78c9aa2f88faaf3ddf4efe2434a7bc' + '92575ff82bd29369b7b0ee0ce307b39e' + '0a8abdb0fc32af6d48ea235c46be5b7c' + '1a54a2b4ab72424d14ffc42a01925ff3' + 'e56b164613ab929fbce76c83b766c6e9' + '51f83e2fd2f22764dbf775689aa155a4' + '51559438e79c0eb8576b98213a5d92d1') + +build(){ + +cd "${srcdir}/${pkgname}-${_pkgver}/build/workspaces" || return 1 +./update-workspaces.sh || return 1 + +cd ${srcdir}/${pkgname}-${_pkgver}/build/workspaces/gcc || return 1 + +# Official recomendations about -j parameter. +if [[ $CARCH = 'x86_64' ]] + then + CONFIG=Release make -j3 || return 1 + else + CONFIG=Release make -j21 CC=distcc || return 1 +fi + +install -d ${pkgdir}/opt/0ad || return 1 +cp -r ${srcdir}/${pkgname}-${_pkgver}/binaries/* ${pkgdir}/opt/0ad || return 1 + +# Removing useless stuff. +# This might change between releases: +rm -r ${pkgdir}/opt/0ad/system/*r +rm -r ${pkgdir}/opt/0ad/system/*.a +rm -r ${pkgdir}/opt/0ad/system/*t +rm -r ${pkgdir}/opt/0ad/system/*debug.so + +install -D -m755 ${srcdir}/${pkgname}.sh ${pkgdir}/usr/bin/${pkgname} || return 1 +install -D -m755 ${srcdir}/${pkgname}-editor.sh ${pkgdir}/usr/bin/${pkgname}-editor || return 1 + +install -D -m 0644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop" +install -D -m 0644 "${srcdir}/${pkgname}-editor.desktop" "${pkgdir}/usr/share/applications/${pkgname}-editor.desktop" +install -D -m 0644 "${srcdir}/${pkgname}.png" "${pkgdir}/usr/share/pixmaps/${pkgname}.png" +} -- cgit v1.2.3-24-g4f1b