diff options
author | ipochto | 2021-11-12 13:22:31 +0300 |
---|---|---|
committer | ipochto | 2021-11-12 13:22:31 +0300 |
commit | b01e665981ef05e1a614c49724ab01205fb7ddd2 (patch) | |
tree | eaa8b616aca4a46a2c8c39c243a0355f5629dd1f | |
parent | 53c4760f46c91b9e8b196260a3a1e838075e5106 (diff) | |
download | aur-b01e665981ef05e1a614c49724ab01205fb7ddd2.tar.gz |
added missed imagemagick dep
-rw-r--r-- | .SRCINFO | 1 | ||||
-rw-r--r-- | PKGBUILD | 34 |
2 files changed, 22 insertions, 13 deletions
@@ -11,6 +11,7 @@ pkgbase = war1gus-git depends = stratagus-git depends = ffmpeg depends = innoextract + depends = imagemagick provides = war1gus-git provides = war1gus conflicts = war1gus @@ -1,28 +1,36 @@ +# Maintainer: ipochto <ipochto@gmail.com> + pkgname=war1gus-git -pkgver=2.4.3 +pkgver=3.1.3.r814.5181b59 pkgrel=1 -pkgdesc="Warcraft1 Mod that allows you to play Warcraft1 with the Stratagus engine (git version)" +pkgdesc="Warcraft1 Mod that allows you to play Warcraft1 with the Stratagus engine (development version)" arch=("i686" "x86_64") url="https://github.com/Wargus/war1gus" license=('GPL') -depends=('stratagus' 'ffmpeg2theora' 'cdparanoia' 'timidity++' 'gtk2' 'imagemagick') -source=("war1gus::git://github.com/Wargus/war1gus.git") +depends=('stratagus-git' 'ffmpeg' 'innoextract' 'imagemagick') +makedepends=('git' 'cmake') + +source=("${pkgname}::git://github.com/Wargus/war1gus.git") md5sums=('SKIP') -provides=('war1gus=2.4.1') -replaces=('war1gus') +provides=(${pkgname} + 'war1gus') conflicts=('war1gus') +pkgver() { + cd "$srcdir/${pkgname}" + dev_cycle=3.1.3 + printf "%s.r%s.%s" "${dev_cycle}" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + build() { - cd $srcdir/war1gus - mkdir -p build - cd build + cd ${srcdir} + + cmake ${pkgname} -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DGAMEDIR=/usr/bin -Bbuild - cmake .. -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX=/usr -DGAMEDIR=/usr/bin - make + make -C build } package() { - cd $srcdir/war1gus/build + cd $srcdir/build make DESTDIR=${pkgdir} install } |