Provides automatic installation scripts for OpenRA with Tiberian Sun & Red Alert 2 + Dune 2 (Windows, Linux)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
2.0 KiB

8 years ago
8 years ago
8 years ago
  1. # Maintainer: Fincer <fincer89 at hotmail dot com>
  2. pkgname=openra-bleed-tibsunra2
  3. pkgver=r20052.b8942d4
  4. pkgrel=1
  5. pkgdesc="An open-source implementation of the Red Alert engine using .NET/mono and OpenGL (git version)"
  6. arch=("any")
  7. url="http://openra.net"
  8. license=("GPL3")
  9. depends=("mono" "ttf-dejavu" "openal" "libgl" "freetype2" "sdl2" "lua51" "hicolor-icon-theme" "desktop-file-utils" "xdg-utils")
  10. makedepends=("git" "nuget")
  11. provides=("openra")
  12. conflicts=("openra-git" "openra")
  13. install=openra-bleed-tibsunra2.install
  14. source=("$pkgname-src::git+https://github.com/OpenRA/OpenRA.git#branch=bleed"
  15. "git://github.com/OpenRA/ra2.git"
  16. ra2-csproj.patch
  17. openra-solution.patch
  18. tibsun_ra2.patch)
  19. sha1sums=('SKIP'
  20. 'SKIP'
  21. '70a45c14874e4454bacb45b5d0c917d452cf4e84'
  22. 'c1d7581ce21851648489adf9ba28aa46ef9615d0'
  23. 'f347f7866352eda1965bb9c5d66fb054eacfffa6')
  24. pkgver() {
  25. cd "$srcdir/$pkgname-src"
  26. printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  27. }
  28. build() {
  29. # Move Red Alert 2 Github files to the right place:
  30. cd "$srcdir/ra2"
  31. mv ./OpenRA.Mods.RA2 "$srcdir/$pkgname-src/"
  32. mkdir -p "$srcdir/$pkgname-src/mods/ra2/"
  33. mv ./* "$srcdir/$pkgname-src/mods/ra2/"
  34. # Patch OpenRA core files for Tiberian Sun & Red Alert 2
  35. cd "$srcdir/$pkgname-src"
  36. patch -Np1 -i "$srcdir/ra2-csproj.patch"
  37. patch -Np1 --binary -i "$srcdir/openra-solution.patch"
  38. patch -Np1 -i "$srcdir/tibsun_ra2.patch"
  39. mkdir $srcdir/$pkgname-src/mods/ra2/bits/{vehicles,themes}
  40. # Get Red Alert 2 GIT version number
  41. ra2_version=git-$(git ls-remote https://github.com/OpenRA/ra2.git | head -1 | sed "s/HEAD//" | sed 's/^\(.\{7\}\).*/\1/')
  42. sed -i "s/Version: {DEV_VERSION}/Version: $ra2_version/g" $srcdir/$pkgname-src/mods/ra2/mod.yaml
  43. cd "$srcdir/$pkgname-src"
  44. make version
  45. make dependencies
  46. make all [DEBUG=true]
  47. }
  48. package() {
  49. cd "$srcdir/$pkgname-src"
  50. make prefix=/usr DESTDIR="$pkgdir" install-all
  51. make prefix=/usr DESTDIR="$pkgdir" install-linux-shortcuts
  52. }