summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9d10fba4017a794d96fda49c05bd0340274aec00 (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
# Contributor: Thaodan <theodorstormgrade@gmail.com>

pkgname=wargus
pkgver=2.4.1
pkgrel=1
pkgdesc="Warcraft2 Mod that allows you to play Warcraft2 with the Stratagus engine"
arch=("i686" "x86_64")
url="https://github.com/WARGUS/WARGUS"
license=('GPL')
depends=( "stratagus=$pkgver" 'ffmpeg2theora' 'cdparanoia' 'timidity++' 'gtk2' 'tolua++' )
source=("https://github.com/Wargus/$pkgname/archive/v${pkgver}.tar.gz")
md5sums=('4a387868da26df4a4aebff19b6b7b6b1')
install=wargus.install

prepare()
{
  mkdir -p build
}
build() {
  cd build
  cmake "$srcdir"/"$pkgname-$pkgver" \
        -DCMAKE_BUILD_TYPE=Release \
	-DCMAKE_INSTALL_PREFIX=/usr \
        -DGAMEDIR=/usr/bin
  make 
}

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