summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d304e46ef8a8a9dcc5a4eaca10a81944352a2436 (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
# Maintainer: Brenton Horne <brentonhorne77 at gmail dot com>
pkgname=openhv-git
pkgver=r2501.61fabc8f
pkgrel=1
pkgdesc="An open-source SciFi RTS game based on OpenRA game engine."
arch=('any')
url="https://www.openhv.net"
license=('GPL3')
depends=('mono' 'openal' 'libgl' 'freetype2' 'sdl2' 'lua51' 'hicolor-icon-theme'
         'gtk-update-icon-cache' 'desktop-file-utils' 'xdg-utils' 'zenity')
makedepends=('git' 'mono-msbuild' 'unzip')
options=(!debug)
source=("git+https://github.com/OpenHV/OpenHV.git")
sha512sums=('SKIP')

pkgver() {
    cd $srcdir/OpenHV
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd OpenHV

  make RUNTIME=mono TARGETPLATFORM=unix-generic
}

package() {
  cd OpenHV

  make prefix=/usr TARGETPLATFORM=unix-generic DESTDIR="$pkgdir" install
  sed -i -e "s|./OpenRA|mono --debug /usr/lib/openhv/OpenRA.dll|g" $pkgdir/usr/bin/openhv
}