diff options
author | Alex Talker | 2015-06-23 18:56:49 +0300 |
---|---|---|
committer | Alex Talker | 2015-06-23 18:56:49 +0300 |
commit | 2c1b36302fd235143efc126d15687823ad2306fb (patch) | |
tree | 9144c26bf36a39b78225ab9952b66fc7d0ea1fca | |
download | aur-2c1b36302fd235143efc126d15687823ad2306fb.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 34 | ||||
-rw-r--r-- | PKGBUILD | 61 | ||||
-rw-r--r-- | xonotic-glx.desktop | 11 | ||||
-rw-r--r-- | xonotic-sdl.desktop | 11 |
4 files changed, 117 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..50f489f3e764 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,34 @@ +pkgbase = xonotic-autobuild + pkgdesc = A free, fast-paced crossplatform first-person shooter (autobuild version) + pkgver = 22022014 + pkgrel = 1 + url = http://xonotic.org + arch = i686 + arch = x86_64 + license = GPL + makedepends = unzip + makedepends = mesa + makedepends = rsync + depends = alsa-lib + depends = curl + depends = libmodplug + depends = libvorbis + depends = libxpm + depends = libxxf86dga + depends = libxxf86vm + depends = sdl + depends = libpng>=1.4.0 + depends = libjpeg6 + provides = xonotic + provides = xonotic-git + provides = xonotic-data + conflicts = xonotic + conflicts = xonotic-git + conflicts = xonotic-data + source = xonotic-glx.desktop + source = xonotic-sdl.desktop + md5sums = 914c7b9163e92b35f0ab57fdb1653ac5 + md5sums = da7d812ff231c9332cd694b39757adda + +pkgname = xonotic-autobuild + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..20dc6d3819be --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,61 @@ +#!/usr/bin/bashs +# Maintainer: Alex Talker <alextalker at openmailbox dot org> +pkgname=xonotic-autobuild +pkgver=22022014 +pkgrel=1 +pkgdesc="A free, fast-paced crossplatform first-person shooter (autobuild version)" +arch=('i686' 'x86_64') +url="http://xonotic.org" + +license=('GPL') +# autobuild not supported 'libjpeg>=8' +depends=('alsa-lib' 'curl' 'libmodplug' 'libvorbis' 'libxpm' 'libxxf86dga' 'libxxf86vm' 'sdl' 'libpng>=1.4.0' 'libjpeg6') +makedepends=('unzip' 'mesa' 'rsync') +provides=('xonotic' 'xonotic-git' 'xonotic-data') +conflicts=('xonotic' 'xonotic-git' 'xonotic-data') +source=("xonotic-glx.desktop" + "xonotic-sdl.desktop" +) +_link="rsync://beta.xonotic.org/autobuild-Xonotic/" +md5sums=('914c7b9163e92b35f0ab57fdb1653ac5' + 'da7d812ff231c9332cd694b39757adda') + +package() { + # downloaded linux sources and cross-platform content + rsync "${_link}*" "${srcdir}/" -c -r -P --links --exclude "*.exe" --exclude "*.dll" --exclude "Xonotic.app/" || return 1 + + # detected computer architecture + _arch=`uname -m` + _xondir="${pkgdir}/opt/xonotic-autobuild" + + if [[ "$_arch"=='x86_64' ]]; then + _arch="linux64" + else + _arch="linux32" + fi + # installing... + cd "${srcdir}/" + mkdir -p "${_xondir}/" + cp -R "${srcdir}"/* "${_xondir}/" + mkdir -p "${pkgdir}/usr/share/applications" + install -Dm644 "${_xondir}"/*.desktop -t "${pkgdir}/usr/share/applications" + install -Dm644 "${_xondir}/misc/logos/icons_png/xonotic_512.png" "${pkgdir}/usr/share/pixmaps/xonotic.png" + mkdir -p "${pkgdir}/usr/bin/" + chmod 755 "${_xondir}"/xonotic-${_arch}-dedicated + chmod 755 "${_xondir}"/xonotic-${_arch}-glx + chmod 755 "${_xondir}"/xonotic-${_arch}-sdl + ln -s "${_xondir}/xonotic-linux-dedicated.sh" "${pkgdir}/usr/bin/xonotic-dedicated" || return 1 +# install -Dm755 $srcdir/xonotic-${_arch}-dedicated ${pkgdir}/usr/bin/xonotic-dedicated + ln -s "${_xondir}/xonotic-linux-glx.sh" "${pkgdir}/usr/bin/xonotic-glx" || return 1 + ln -s "${_xondir}/xonotic-linux-sdl.sh" "${pkgdir}/usr/bin/xonotic-sdl" ||return 1 + + # data +# mkdir -p ${pkgdir}/usr/share/xonotic/ +# mv $srcdir/data ${pkgdir}/usr/share/xonotic/ || return 1 + + # server stuff +# cp -r $srcdir/server ${pkgdir}/usr/share/xonotic/ || return 1 + + # key +# install -Dm644 ${srcdir}/key_0.d0pk ${pkgdir}/usr/share/xonotic/key_0.d0pk || return 1 +} diff --git a/xonotic-glx.desktop b/xonotic-glx.desktop new file mode 100644 index 000000000000..9f9e78cc1c72 --- /dev/null +++ b/xonotic-glx.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Type=Application +Version=2.5 +Encoding=UTF-8 +Name=Xonotic (GLX) +Comment=a free open-source first person shooter +Icon=/usr/share/pixmaps/xonotic.png +Exec=/usr/bin/xonotic-glx +Terminal=false +StartupNotify=false +Categories=Game; diff --git a/xonotic-sdl.desktop b/xonotic-sdl.desktop new file mode 100644 index 000000000000..32b37f2c55a7 --- /dev/null +++ b/xonotic-sdl.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Type=Application +Version=2.5 +Encoding=UTF-8 +Name=Xonotic (SDL) +Comment=a free open-source first person shooter +Icon=/usr/share/pixmaps/xonotic.png +Exec=/usr/bin/xonotic-sdl +Terminal=false +StartupNotify=false +Categories=Game; |