diff options
-rw-r--r-- | .SRCINFO | 25 | ||||
-rw-r--r-- | PKGBUILD | 48 |
2 files changed, 47 insertions, 26 deletions
@@ -1,21 +1,24 @@ pkgbase = war1gus-git - pkgdesc = Warcraft1 Mod that allows you to play Warcraft1 with the Stratagus engine (git version) - pkgver = 2.4.1 + pkgdesc = Warcraft1 Mod that allows you to play Warcraft1 with the Stratagus engine (dev version) + pkgver = 3.3.2.r1233.c2a6013_20220811 pkgrel = 1 url = https://github.com/Wargus/war1gus arch = i686 arch = x86_64 license = GPL - depends = stratagus - depends = ffmpeg2theora - depends = cdparanoia - depends = timidity++ - depends = gtk2 - provides = war1gus=2.4.1 + makedepends = git + makedepends = cmake + makedepends = imagemagick + depends = stratagus-git + depends = ffmpeg + depends = innoextract + optdepends = zenity: graphical UI for data extractor + optdepends = xdialog: graphical UI for data extractor + optdepends = dialog: console UI for data extractor + optdepends = fluidsynth: midi music support + optdepends = soundfont-fluid: sound font for midi music support conflicts = war1gus - replaces = war1gus - source = war1gus::git://github.com/Wargus/war1gus.git + source = war1gus-git::git+https://github.com/Wargus/war1gus.git md5sums = SKIP pkgname = war1gus-git - @@ -1,28 +1,46 @@ +# Maintainer: ipochto <ipochto@gmail.com> + pkgname=war1gus-git -pkgver=2.4.1 +pkgver=3.3.2.r1233.c2a6013_20220811 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 (dev version)" arch=("i686" "x86_64") url="https://github.com/Wargus/war1gus" license=('GPL') -depends=('stratagus' 'ffmpeg2theora' 'cdparanoia' 'timidity++' 'gtk2' ) -source=("war1gus::git://github.com/Wargus/war1gus.git") -md5sums=('SKIP') -provides=('war1gus=2.4.1') -replaces=('war1gus') +makedepends=( + 'git' + 'cmake' + 'imagemagick' +) +depends=( + 'stratagus-git' + 'ffmpeg' + 'innoextract' +) +optdepends=( + 'zenity: graphical UI for data extractor' + 'xdialog: graphical UI for data extractor' + 'dialog: console UI for data extractor' + 'fluidsynth: midi music support' + 'soundfont-fluid: sound font for midi music support' +) conflicts=('war1gus') +source=("${pkgname}::git+https://github.com/Wargus/war1gus.git") +md5sums=('SKIP') -build() { - cd $srcdir/war1gus - mkdir -p build - cd build +pkgver() { + cd "$srcdir/${pkgname}" + dev_cycle=3.3.2 + printf "%s.r%s.%s_%s" "${dev_cycle}" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" "$(date +%Y%m%d)" +} - cmake .. -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX=/usr -DGAMEDIR=/usr/bin - make +build() { + cd ${srcdir} + cmake ${pkgname} -DCMAKE_INSTALL_PREFIX=/usr -DGAMEDIR=/usr/bin -Bbuild + make -C build } package() { - cd $srcdir/war1gus/build + cd $srcdir/build make DESTDIR=${pkgdir} install } |