desktop/warzone2100/PKGBUILD

36 lines
1.0 KiB
Bash
Raw Normal View History

pkgname=warzone2100
2017-04-30 10:50:18 +08:00
pkgver=3.2.3
2014-12-30 20:16:56 +08:00
pkgrel=1
pkgdesc="3D real-time strategy game where you fight to rebuilt the world destroyed by nuclear war."
2014-07-16 01:28:45 +08:00
arch=('x86_64')
2016-12-15 06:50:10 +08:00
url="https://wz2100.net/"
license=('GPL')
2012-03-07 19:00:46 +08:00
categories=('games')
depends=('libgl' 'openal' 'libjpeg' 'libpng' 'libvorbis' 'libtheora' 'libmad'
'physfs' 'mesa' 'quesoglc' 'popt' 'ttf-dejavu' 'qt5-base' 'qt5-script'
'qt5-x11extras' 'glew' 'sdl2')
makedepends=('gawk' 'bison' 'flex' 'zip' 'unzip' 'libxrandr' 'asciidoc')
2014-07-16 01:28:45 +08:00
conflicts=('warzone2100-dev')
2016-12-15 06:50:10 +08:00
source=("https://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.xz"
2017-04-30 10:50:18 +08:00
fix-qt-build.patch)
sha256sums=('fcab9e860203e7dacda6ee60384da490a9d44aeafc07aa31ff25f9c548be7582'
'59529cb62e5985ed9934fdf3621a98ecf2b3b54d4bd7d0793b5317156934712f')
build() {
2014-07-16 01:28:45 +08:00
cd ${pkgname}-${pkgver}
2017-04-30 10:50:18 +08:00
# Fix build
patch -Np1 -i ${srcdir}/fix-qt-build.patch
2011-11-13 01:39:34 +08:00
./configure \
--prefix=/usr \
--with-backend=qt \
--with-distributor="Chakra GNU/Linux"
make
}
package() {
2014-07-16 01:28:45 +08:00
cd ${pkgname}-${pkgver}
make DESTDIR=${pkgdir} install
}