blob: 8d5c823c38ca5d0f677700e2c5feb1ad0e8c8f04 (
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
64
65
66
|
# Maintainer: Gelmo <gelmo[at]outlook.com>
# Contributor: Sven-Hendrik Haase <sh@lutzhaase.com>
# Contributor: Slash <demodevil5[at]yahoo[dot]com>
# Contributor: Babets
# Contributor: Vain
# Contributor: Aleksej Komarov <stylemistake@gmail.com>
# Note, as of Warfork 2.14, launching via Steam is required to join servers that have sv_useSteamAuth set to 1 (which is the default). Related errors are expected when using this package.
pkgname='warfork-bin'
# Note, you can always rebuild this package to pull the latest release from Steam
pkgver=2.14
pkgrel=1
_relver=2.14
pkgdesc='Free online multiplayer competitive FPS based on the Qfusion engine (official binary via Steam)'
url='https://www.warfork.com/'
license=('GPL2')
arch=('x86_64')
depends=('sdl2' 'libjpeg' 'libpng' 'curl' 'libvorbis' 'freetype2'
'libxinerama' 'libxxf86vm' 'libxrandr' 'libtheora' 'libxi')
makedepends=('imagemagick' 'gendesk' 'steamcmd')
optdepends=('openal: for openal audio support')
provides=('warfork')
conflicts=('warfork')
source=('warfork.png'
'warfork.launcher'
'wf-server.launcher'
'wftv-server.launcher')
sha512sums=('f78af226cad17ff9eaeebeafd754bb35f10549abede755f4fa9d6616118003877f036f3329b490a9c342267fdda4eaffde926878bf1d24c33488f0a02d4bc697'
'073959aebd70807b893d474c7005341356f974acc573eae49eb2d23273068318ee855ccaeb0a037caf9a7a4ce545927b939f3b31d996384f56a90b54ff2cd5c0'
'9fd472b186477259270aecef8456b72db51a3f7f161280b23633f25a5169f3d3ada7583aff50e7510df08f9b38514d77420adef5f761365e1b9aa29737f1c1c4'
'10952bc4e123c0d75d492761b505a3b1ddf6c8e27143bf25bbb0e28dede5b44238849a96542345f9e068aaf442b0df4859f23b6e18049e7dfc94535e7aaefc65')
prepare() {
gendesk -n -f --pkgname 'warfork' --pkgdesc "${pkgdesc}" --name 'Warfork' --categories 'Game;ActionGame;Shooter'
steamcmd +force_install_dir "$srcdir/$pkgname" +login anonymous +app_update 1136510 validate +quit
}
package() {
install -Dm755 "${srcdir}/${pkgname}/wf_server.x86_64" "${pkgdir}/opt/warfork/wf_server.x86_64"
install -Dm755 "${srcdir}/${pkgname}/wftv_server.x86_64" "${pkgdir}/opt/warfork/wftv_server.x86_64"
install -Dm755 "${srcdir}/${pkgname}/warfork.x86_64" "${pkgdir}/opt/warfork/warfork.x86_64"
install -Dm755 "${srcdir}/${pkgname}/warfork.x86_64" "${pkgdir}/opt/warfork/warfork"
install -Dm644 "${srcdir}/${pkgname}/commit.txt" "${pkgdir}/opt/warfork/commit.txt"
install -Dm644 "${srcdir}/${pkgname}/libsteam_api.so" "${pkgdir}/opt/warfork/libsteam_api.so"
install -Dm644 "${srcdir}/${pkgname}/steam_appid.txt" "${pkgdir}/opt/warfork/steam_appid.txt"
cp -a "${srcdir}/${pkgname}/"{basewf,libs} "${pkgdir}/opt/warfork/"
find "${pkgdir}/opt/warfork/"{basewf,libs} -type d | xargs chmod 755
find "${pkgdir}/opt/warfork/"{basewf,libs} -type f | xargs chmod 644
# Install launchers to /usr/bin
install -Dm755 "${srcdir}/warfork.launcher" "${pkgdir}/usr/bin/warfork"
install -Dm755 "${srcdir}/wf-server.launcher" "${pkgdir}/usr/bin/wf-server"
install -Dm755 "${srcdir}/wftv-server.launcher" "${pkgdir}/usr/bin/wftv-server"
# Install the menu entry
install -D -m 0644 "${srcdir}/warfork.desktop" "${pkgdir}/usr/share/applications/warfork.desktop"
# Install the launcher icon
install -D -m 0644 "${srcdir}/warfork.png" "${pkgdir}/usr/share/pixmaps/warfork.png"
}
# vim: ts=2 sts=2 et:
|