blob: bc05fbe4e935a4deb13a8af6558524a902e37196 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# $Id: PKGBUILD 64731 2012-02-18 03:18:55Z svenstaro $
# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
# Contributor: Jaroslaw Swierczynski <swiergot@aur.archlinux.org>
# Contributor: Roman Kyrylych <Roman.Kyrylych@gmail.com>
# Contributor: Rabyte <rabyte [at] gmail (dot) com>
pkgname=assaultcube
pkgver=1.1.0.4
pkgrel=4
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
}
# vim: sw=2:ts=2 et:
|