desktop/assaultcube/PKGBUILD
2014-07-15 17:56:58 +00:00

54 lines
2.3 KiB
Bash

#
# Games Packages for Chakra, part of chakra-project.org
#
# Maintainer: Stephen McIntosh (arch_is_awesome) <stephenmac7[at]gmail[dot]com>
pkgname=assaultcube
_pkgname=AssaultCube
pkgver=1.2.0.2
pkgrel=1
pkgdesc='A realistic team oriented multiplayer FPS based on the Cube engine'
arch=('x86_64')
url='http://assault.cubers.net/'
license=('ZLIB' 'custom')
depends=('sdl' 'sdl_mixer' 'sdl_image' 'openal' 'zlib' 'gcc-libs' 'libgl' 'desktop-file-utils' 'glu')
makedepends=('mesa' 'clang')
install=${pkgname}.install
source=("http://downloads.sourceforge.net/project/actiongame/${_pkgname}%20Version%20${pkgver}/${_pkgname}_v${pkgver}.tar.bz2"
"http://downloads.sourceforge.net/project/actiongame/${_pkgname}%20Version%20${pkgver}/${_pkgname}_v${pkgver}.source.tar.bz2"
'assaultcube'
'assaultcube-server'
'assaultcube.desktop'
'assaultcube.png')
sha256sums=('77ac41bdf07f6d74367e29089c2ee34da5ef53fdf979d7dfad58c3edce5f0717'
'949321c7ae82b740b746ee815b468fd732f633819c176334f5c62e916ed9ca03'
'8ad5a849c14b362f7d879708d95840b5ce8dd41c39ac39770ef3cdba2ebd684f'
'66b1a4a2d3c69218d152017ecfadfd1d4e78e691393c8896763eeee089f7f4cc'
'bf506f63bb46c040fda94c85a2f03a7146de9c635957aaaa9891f65db5bb629c'
'0b6b529e3f9c7973942ef91c6bef82181631651564d3613de983a12f1083c457')
build() {
cd ${_pkgname}_v${pkgver}.source/source/src
make
}
package() {
cd ${_pkgname}_v${pkgver}.source/source/src
install -Dm755 ac_client "${pkgdir}/usr/bin/ac_client"
install -Dm755 ac_server "${pkgdir}/usr/bin/ac_server"
cd "${srcdir}/${_pkgname}_v${pkgver}"
install -dm755 "${pkgdir}"/usr/share/assaultcube/packages
install -Dm755 bin_unix/linux_64_client "${pkgdir}/usr/bin/ac_client"
install -Dm755 bin_unix/linux_64_server "${pkgdir}/usr/bin/ac_server"
cp -r {config,packages,docs,mods} "${pkgdir}/usr/share/assaultcube/"
install -Dm644 ../assaultcube.png "${pkgdir}/usr/share/pixmaps/assaultcube.png"
install -Dm644 ..//assaultcube.desktop "${pkgdir}/usr/share/applications/assaultcube.desktop"
install -Dm644 docs/package_copyrights.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm755 ../assaultcube "${pkgdir}/usr/bin/assaultcube"
install -Dm755 ../assaultcube-server "${pkgdir}/usr/bin/assaultcube-server"
}