2010-12-01 00:11:33 +08:00
|
|
|
pkgname=wesnoth
|
2018-05-11 08:23:56 +08:00
|
|
|
pkgver=1.14.1
|
2018-04-28 09:02:06 +08:00
|
|
|
pkgrel=1
|
2010-12-12 02:10:16 +08:00
|
|
|
pkgdesc="A turn-based strategy game on a fantasy world."
|
2014-11-26 20:27:39 +08:00
|
|
|
arch=('x86_64')
|
2011-05-15 07:47:23 +08:00
|
|
|
license=('GPL2')
|
2010-12-01 00:11:33 +08:00
|
|
|
url="http://www.wesnoth.org/"
|
2018-04-28 09:02:06 +08:00
|
|
|
depends=('boost-libs' 'freetype2' 'fribidi' 'gcc-libs' 'icu' 'libvorbis' 'lua52' 'pango' 'sdl2_image' 'sdl2_mixer'
|
|
|
|
'sdl2_net' 'sdl2_ttf' 'dbus' 'python2')
|
2012-01-23 14:05:39 +08:00
|
|
|
makedepends=('boost' 'cmake')
|
2011-05-15 07:47:23 +08:00
|
|
|
conflicts=('wesnoth-dev' 'wesnoth-svn')
|
2012-03-07 19:00:46 +08:00
|
|
|
categories=('games')
|
2018-04-28 09:02:06 +08:00
|
|
|
source=(https://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.bz2
|
2014-11-26 20:27:39 +08:00
|
|
|
"wesnothd.tmpfiles.conf"
|
|
|
|
"wesnothd.service")
|
2018-05-11 08:23:56 +08:00
|
|
|
sha256sums=('6bf655b4df17098104a23078fb796c91223aca8294a15e58209aac70f6b2f9d7'
|
2015-01-29 11:46:24 +08:00
|
|
|
'1ae908f0608e9600088d3175c2276923e7fdccf825850d3f6e607bc197987e70'
|
|
|
|
'd314dbefc72d09f2e3b1db15c4dc20873771f26df2360b39b55481deaeba00db')
|
2010-12-01 00:11:33 +08:00
|
|
|
|
|
|
|
build() {
|
2014-11-26 20:27:39 +08:00
|
|
|
cd ${srcdir}/${pkgname}-${pkgver}
|
2011-05-15 07:47:23 +08:00
|
|
|
|
2012-02-28 07:52:26 +08:00
|
|
|
mkdir -p build && cd build
|
2011-05-15 07:47:23 +08:00
|
|
|
cmake \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
2013-08-18 06:14:24 +08:00
|
|
|
-DENABLE_CAMPAIGN_SERVER=ON \
|
|
|
|
-DENABLE_TOOLS=ON \
|
|
|
|
-DENABLE_OMP=ON \
|
|
|
|
-DCMAKE_BUILD_TYPE=RelWithDebugInfo \
|
2015-04-13 07:22:30 +08:00
|
|
|
-DMANDIR=share/man \
|
|
|
|
-DFIFO_DIR=/run/wesnothd \
|
2011-05-15 07:47:23 +08:00
|
|
|
..
|
|
|
|
make
|
2010-12-01 00:11:33 +08:00
|
|
|
}
|
2011-01-21 23:12:51 +08:00
|
|
|
|
2010-12-01 00:11:33 +08:00
|
|
|
package() {
|
2014-11-26 20:27:39 +08:00
|
|
|
cd ${srcdir}/${pkgname}-${pkgver}/build
|
2010-12-12 02:10:16 +08:00
|
|
|
make DESTDIR=$pkgdir install
|
2014-11-26 20:27:39 +08:00
|
|
|
|
|
|
|
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"
|
2010-12-01 00:11:33 +08:00
|
|
|
}
|