Add stratagus-bzr and wargus-bzr

This commit is contained in:
Oleg Shparber 2014-08-26 21:29:53 -07:00
commit 2b2455a802
2 changed files with 59 additions and 0 deletions

20
.SRCINFO Normal file
View file

@ -0,0 +1,20 @@
pkgbase = wargus-bzr
pkgdesc = Warcraft 2 Mod that allows you to play Warcraft2 with the Stratagus engine
pkgver = r1757
pkgrel = 1
url = https://launchpad.net/wargus
arch = i686
arch = x86_64
license = GPL
depends = stratagus-bzr
depends = ffmpeg2theora
depends = cdparanoia
depends = timidity++
depends = gtk2
provides = wargus
conflicts = wargus
source = wargus::bzr+http://bazaar.launchpad.net/~stratagus/wargus/trunk/
sha256sums = SKIP
pkgname = wargus-bzr

39
PKGBUILD Normal file
View file

@ -0,0 +1,39 @@
# Maintainer: Oleg Shparber <trollixx+aur@gmail.com>
# Contributor: Thaodan <theodorstormgrade@gmail.com>
_pkgname=wargus
pkgname=$_pkgname-bzr
pkgver=r1757
pkgrel=1
pkgdesc="Warcraft 2 Mod that allows you to play Warcraft2 with the Stratagus engine"
arch=("i686" "x86_64")
url="https://launchpad.net/wargus"
license=('GPL')
depends=('stratagus-bzr' 'ffmpeg2theora' 'cdparanoia' 'timidity++' 'gtk2' )
conflicts=$_pkgname
provides=$_pkgname
source=("${pkgname%-*}::bzr+http://bazaar.launchpad.net/~stratagus/wargus/trunk/")
sha256sums=('SKIP')
pkgver() {
cd ${pkgname%-*}
printf "r%s" "$(bzr revno)"
}
build() {
cd $srcdir
mkdir -p build
cd build
cmake ../${pkgname%-*} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr -DGAMEDIR=/usr/bin
make
}
package() {
cd "${srcdir}"/build
make DESTDIR="${pkgdir}" install
}