blob: 1d8d1a74d39dd14ad7e9b10cbc4aee92a0279e1a (
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
|
# Maintainer: WorMzy Tykashi <wormzy.tykashi@gmail.com>
pkgname=openfodder
pkgver=1.9.2
pkgrel=1
pkgdesc="An open source version of the Cannon Fodder engine, for modern operating systems"
arch=('i686' 'x86_64')
url="http://openfodder.com/"
license=('GPL-3.0-or-later')
depends=('gcc-libs' 'glibc' 'sdl2' 'sdl2_mixer')
makedepends=('git' 'clang')
install=${pkgname}.install
source=(git+"https://github.com/OpenFodder/openfodder.git#tag=${pkgver}")
md5sums=('cc94bf445bb4b6552158101b327c5610')
prepare() {
cd openfodder
git submodule init
git -c protocol.file.allow=always submodule update
}
build() {
cd openfodder
make
}
package() {
cd openfodder/Run
# Install executable and create terminal-friendly symlink
install -Dm755 OpenFodder "${pkgdir}/usr/bin/OpenFodder"
ln -s OpenFodder "${pkgdir}/usr/bin/openfodder"
rm OpenFodder
# install data files
install -dm755 "${pkgdir}/var/lib/OpenFodder"
cp -r * "${pkgdir}/var/lib/OpenFodder"
}
|