blob: 56a743d06d18d83893a1a0ae163b51444797be63 (
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
|
# $Id: PKGBUILD 94054 2013-07-13 12:37:56Z svenstaro $
# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
# Contributor: Jan de Groot <jgc@archlinux.org>
# Contributor: Tobias Powalowski <tpowa@archlinux.org>
# Contributor: Jacobo Arvelo <unix4all@ya.com>
# Contributor: Douglas Soares de Andrade <douglas@archlinux.org>
pkgname=wesnoth
pkgver=1.10.6
pkgrel=6
pkgdesc="A turn-based strategy game on a fantasy world"
arch=('i686' 'x86_64')
license=('GPL')
url="http://www.wesnoth.org/"
depends=('sdl_ttf' 'sdl_net' 'sdl_mixer' 'sdl_image' 'fribidi' 'boost-libs' 'pango' 'lua' "wesnoth-data>=$pkgver" 'dbus-core' 'python2')
makedepends=('boost' 'cmake')
install=wesnoth.install
options=(!emptydirs)
source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2
wesnothd.tmpfiles.conf
wesnothd.service
https://github.com/wesnoth/wesnoth-old/commit/bbd7f6.patch)
md5sums=('547e3489bbfa778912b11dbee612c380'
'2d2fea6b3d86dfd589f5ad35a3be1f97'
'd1b6bf1d3dc05086ee6a370adff0ae4a'
'edc7c0547e67cba4ca4f813ca261f572')
build() {
cd "$srcdir/$pkgname-$pkgver"
patch -Np1 -i $srcdir/bbd7f6.patch
mkdir build && cd build
cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr \
-DENABLE_OMP=ON \
-DENABLE_TOOLS=ON \
-DMANDIR=share/man
make
}
package() {
cd "$srcdir/$pkgname-$pkgver"
cd build
make DESTDIR="$pkgdir" install
rm -r $pkgdir/usr/share/applications
rm -r $pkgdir/usr/share/doc
rm -r $pkgdir/usr/share/pixmaps
rm -r $pkgdir/usr/share/wesnoth
install -Dm644 "$srcdir/wesnothd.tmpfiles.conf" "$pkgdir/usr/lib/tmpfiles.d/wesnothd.conf"
install -Dm644 "$srcdir/wesnothd.service" "$pkgdir/usr/lib/systemd/system/wesnothd.service"
}
|