summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e571a034a4ed81ffdd75fb561c64c0ee5fa62b41 (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
# Maintainer: ipochto <ipochto@gmail.com>

pkgname=war1gus
pkgver=3.1.2
pkgrel=2
pkgdesc="Warcraft1 Mod that allows you to play Warcraft1 with the Stratagus engine"
arch=("i686" "x86_64")
url="https://github.com/Wargus/war1gus"
license=('GPL')
makedepends=(
	'cmake'
	'imagemagick'
)
depends=(
	"stratagus=$pkgver"
	'ffmpeg' 
	'innoextract'
)
optdepends=(
	'zenity: graphical UI for data extractor'
	'xdialog: graphical UI for data extractor'
	'dialog: console UI for data extractor'
	'fluidsynth: midi music suport'
	'soundfont-fluid: sound font for midi music support'
)
conflicts=('war1gus-git')
source=("https://github.com/Wargus/$pkgname/archive/v${pkgver}.tar.gz")
md5sums=('3b0cad05b8b7be117426ab8d1f58bfb5')

build() {
  cd ${srcdir}
  cmake "${pkgname}-${pkgver}" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DGAMEDIR=/usr/bin -Bbuild
  make -C build
}

package()  {
  cd $srcdir/build
  make  DESTDIR=${pkgdir} install
}