mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-04 00:37:15 +08:00
52 lines
1.5 KiB
Bash
52 lines
1.5 KiB
Bash
#
|
|
# Games Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
|
|
|
|
pkgname=wesnoth
|
|
pkgver=1.12.0
|
|
_pkgver=1.12
|
|
pkgrel=1
|
|
pkgdesc="A turn-based strategy game on a fantasy world."
|
|
arch=('x86_64')
|
|
license=('GPL2')
|
|
url="http://www.wesnoth.org/"
|
|
depends=('boost-libs' 'freetype2' 'fribidi' 'gcc-libs' 'icu' 'libvorbis' 'lua' 'pango' 'sdl_image' 'sdl_mixer'
|
|
'sdl_net' 'sdl_ttf' 'dbus' 'python2')
|
|
makedepends=('boost' 'cmake')
|
|
conflicts=('wesnoth-dev' 'wesnoth-svn')
|
|
categories=('games')
|
|
source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${_pkgver}.tar.bz2
|
|
"wesnoth-boost.patch"
|
|
"wesnothd.tmpfiles.conf"
|
|
"wesnothd.service")
|
|
md5sums=('1fa1a43cb7f6f1664c36d7e4c1eedc01'
|
|
'9a4ad99ba66990bfc17cb12966b3823b'
|
|
'2d2fea6b3d86dfd589f5ad35a3be1f97'
|
|
'd1b6bf1d3dc05086ee6a370adff0ae4a')
|
|
|
|
build() {
|
|
cd ${srcdir}/${pkgname}-${pkgver}
|
|
|
|
# Try this again in a new version when they fix their linking to boost
|
|
patch -Np1 < ${srcdir}/wesnoth-boost.patch
|
|
|
|
mkdir -p build && cd build
|
|
cmake \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DENABLE_CAMPAIGN_SERVER=ON \
|
|
-DENABLE_TOOLS=ON \
|
|
-DENABLE_OMP=ON \
|
|
-DCMAKE_BUILD_TYPE=RelWithDebugInfo \
|
|
..
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd ${srcdir}/${pkgname}-${pkgver}/build
|
|
make DESTDIR=$pkgdir install
|
|
|
|
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"
|
|
}
|