blob: 7216cf629cd937cdb67847814f0367412873ce2a (
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
|
# Maintainer: Archadept
# Revision: 2017-03-22
pkgname=wesnoth-git
_gitname=wesnoth
pkgver=1.17.17.64.gba3e3464559
pkgrel=1
pkgdesc="The latest version of a turn-based strategy game on a fantasy world"
arch=('x86_64')
url="http://www.wesnoth.org/"
license=('GPL')
depends=('boost' 'boost-libs' 'fribidi' 'sdl2' 'sdl2_ttf' 'sdl2_net' 'sdl2_mixer' 'sdl2_image' 'libvorbis' 'pango' 'python')
makedepends=('openssh' 'scons' 'git' 'gcc' 'git')
conflicts=('wesnoth' 'wesnoth-data')
provides=('wesnoth')
source=('git+https://github.com/wesnoth/wesnoth.git')
md5sums=('SKIP')
pkgver() {
cd ${_gitname}
git describe --always | sed 's/-/./g'
}
build() {
cd "${srcdir}"
rm -rf ${srcdir}/$_gitname-build
cp -r ${_gitname} ${_gitname}-build || return 1
}
package() {
cd ${srcdir}/${_gitname}-build/src/modules/mariadbpp
git submodule update --recursive --init
cd ${srcdir}/${_gitname}-build
scons prefsdir=.local/share/$_gitname/git prefix=/usr debug=yes || return 1
scons destdir=${pkgdir} install || return 1
cd ${pkgdir}
rm -R var
}
|