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.

55 lines
1.8 KiB

8 years ago
  1. # Maintainer: Fincer <fincer89 at hotmail dot com>
  2. pkgname=openra-bleed-tibsunra2
  3. pkgver=r20059.613854d
  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")
  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. sha1sums=('SKIP'
  17. 'SKIP'
  18. '2e67a7f84d78d7b9ce8981ebb578c7b744406406'
  19. 'ed794d2538ab53c747b10ab3a013f667eb455815')
  20. pkgver() {
  21. cd "$srcdir/$pkgname-src"
  22. printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  23. }
  24. build() {
  25. # Move Red Alert 2 Github files to the right place:
  26. cd "$srcdir/ra2"
  27. mv ./OpenRA.Mods.RA2 "$srcdir/$pkgname-src/"
  28. mkdir -p "$srcdir/$pkgname-src/mods/ra2/"
  29. mv ./* "$srcdir/$pkgname-src/mods/ra2/"
  30. # Patch OpenRA core files for Tiberian Sun & Red Alert 2
  31. cd "$srcdir/$pkgname-src"
  32. for i in $srcdir/*.patch; do patch -Np1 < $i; done
  33. mkdir $srcdir/$pkgname-src/mods/ra2/bits/{vehicles,themes}
  34. # Get Red Alert 2 GIT version number
  35. ra2_version=git-$(git ls-remote https://github.com/OpenRA/ra2.git | head -1 | sed "s/HEAD//" | sed 's/^\(.\{7\}\).*/\1/')
  36. sed -i "s/Version: {DEV_VERSION}/Version: $ra2_version/g" $srcdir/$pkgname-src/mods/ra2/mod.yaml
  37. cd "$srcdir/$pkgname-src"
  38. make version
  39. make dependencies
  40. make all [DEBUG=false]
  41. }
  42. package() {
  43. cd "$srcdir/$pkgname-src"
  44. make prefix=/usr DESTDIR="$pkgdir" install-all
  45. make prefix=/usr DESTDIR="$pkgdir" install-linux-shortcuts
  46. }