Commit 8754a8b2 authored by Stephen's avatar Stephen

Added assaultcube

parent e16eb2ee
#
# Games Packages for Chakra, part of chakra-project.org
#
# Maintainer: Stephen McIntosh (arch_is_awesome) <stephenmac7[at]gmail[dot]com>
pkgname=assaultcube
pkgver=1.1.0.4
pkgrel=1
pkgdesc='A realistic team oriented multiplayer FPS based on the Cube engine'
arch=('i686' 'x86_64')
url='http://assault.cubers.net/'
license=('ZLIB' 'custom')
depends=('sdl' 'sdl_mixer' 'sdl_image' 'openal' 'zlib' 'gcc-libs' 'libgl' 'desktop-file-utils')
makedepends=('mesa')
source=("http://downloads.sourceforge.net/actiongame/AssaultCube_v${pkgver}.tar.bz2"
"http://downloads.sourceforge.net/actiongame/AssaultCube_v${pkgver}_source.tar.bz2"
'assaultcube'
'assaultcube-server'
'assaultcube.desktop'
'assaultcube.png')
md5sums=('a5eb79eaf564c5b4de1ffad0883e45e8'
'603b97a4262fb59ea86d483730b712e9'
'd658ad3ee476bfe92afa5b5a04a7b4f5'
'553e2c3b38c4d13e5d77c23efd51a6a6'
'a37dfbe8263f4ef8fe41120196194eae'
'f688c59ecee2ebc5c589720aa1480765')
install=assaultcube.install
build() {
cd ${pkgver}/source
# We'll use official binaries for cheat protection or some stuff.
# Upstream is strange.
#make
}
package() {
#cd ${pkgver}/source/src
#install -Dm755 ac_client ${pkgdir}/usr/bin/ac_client
#install -Dm755 ac_server ${pkgdir}/usr/bin/ac_server
cd ${srcdir}/${pkgver}
mkdir -p ${pkgdir}/usr/share/assaultcube/packages
mkdir -p ${pkgdir}/usr/bin
if [[ $CARCH == "x86_64" ]]; then
cp bin_unix/linux_64_client ${pkgdir}/usr/bin/ac_client
cp bin_unix/linux_64_server ${pkgdir}/usr/bin/ac_server
else
cp bin_unix/linux_client ${pkgdir}/usr/bin/ac_client
cp bin_unix/linux_server ${pkgdir}/usr/bin/ac_server
fi
cp -rf config packages docs mods ${pkgdir}/usr/share/assaultcube
install -Dm644 ${srcdir}/assaultcube.png ${pkgdir}/usr/share/pixmaps/assaultcube.png
install -Dm644 ${srcdir}/assaultcube.desktop ${pkgdir}/usr/share/applications/assaultcube.desktop
install -Dm644 docs/package_copyrights.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
install -Dm755 ${srcdir}/assaultcube ${pkgdir}/usr/bin/assaultcube
install -Dm755 ${srcdir}/assaultcube-server ${pkgdir}/usr/bin/assaultcube-server
}
#!/bin/bash
cd /usr/share/assaultcube
ac_client "--home=${HOME}/.assaultcube" "--init=${HOME}/.assaultcube/config/init.cfg" "$@"
#!/bin/bash
cd /usr/share/assaultcube
ac_server "$@"
[Desktop Entry]
Encoding=UTF-8
Exec=assaultcube
Icon=assaultcube
Type=Application
Terminal=false
MultipleArgs=false
Name=AssaultCube
GenericName=Realistic Multiplayer FPS
MimeType=text/html
StartupNotify=false
Categories=Game;ActionGame;
post_install() {
update-desktop-database -q
update-mime-database usr/share/mime &> /dev/null
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
}
post_upgrade() {
post_install
}
post_remove() {
post_install
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment