desktop/wesnoth/PKGBUILD

46 lines
1.5 KiB
Bash
Raw Normal View History

pkgname=wesnoth
2015-04-12 15:28:23 +08:00
pkgver=1.12.2
2014-11-26 20:27:39 +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')
license=('GPL2')
url="http://www.wesnoth.org/"
2012-01-23 14:05:39 +08:00
depends=('boost-libs' 'freetype2' 'fribidi' 'gcc-libs' 'icu' 'libvorbis' 'lua' 'pango' 'sdl_image' 'sdl_mixer'
2014-11-26 20:27:39 +08:00
'sdl_net' 'sdl_ttf' 'dbus' 'python2')
2012-01-23 14:05:39 +08:00
makedepends=('boost' 'cmake')
conflicts=('wesnoth-dev' 'wesnoth-svn')
2012-03-07 19:00:46 +08:00
categories=('games')
2015-01-29 11:46:24 +08:00
source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.bz2
2014-11-26 20:27:39 +08:00
"wesnoth-boost.patch"
"wesnothd.tmpfiles.conf"
"wesnothd.service")
2015-04-12 15:28:23 +08:00
sha256sums=('1f4f76e5fd0ce175a3eb7b9855aff7a58dc75899c534d7653d97ac9fd4fe798b'
2015-01-29 11:46:24 +08:00
'ccacb1049a71935392b46f919c4045b11936b232522ed2763561fbc0fb1e40b7'
'1ae908f0608e9600088d3175c2276923e7fdccf825850d3f6e607bc197987e70'
'd314dbefc72d09f2e3b1db15c4dc20873771f26df2360b39b55481deaeba00db')
build() {
2014-11-26 20:27:39 +08:00
cd ${srcdir}/${pkgname}-${pkgver}
# Try this again in a new version when they fix their linking to boost
patch -Np1 < ${srcdir}/wesnoth-boost.patch
2012-02-28 07:52:26 +08:00
mkdir -p build && cd build
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 \
..
make
}
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"
}