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.

20 lines
775 B

  1. --- a/PKGBUILD
  2. +++ b/PKGBUILD
  3. @@ -28,6 +28,17 @@
  4. build() {
  5. +# Move Dune 2 Github files to the right place:
  6. + cd "$srcdir/d2"
  7. + mv ./OpenRA.Mods.D2 "$srcdir/$pkgname-src/"
  8. + mkdir -p "$srcdir/$pkgname-src/mods/d2/"
  9. + mv ./* "$srcdir/$pkgname-src/mods/d2/"
  10. +
  11. +# Get Dune 2 GIT version number for files
  12. + d2_version=git-$(git ls-remote https://github.com/OpenRA/d2.git | head -1 | sed "s/HEAD//" | sed 's/^\(.\{7\}\).*/\1/')
  13. + sed -i "s/Version: {DEV_VERSION}/Version: $d2_version/g" $srcdir/$pkgname-src/mods/d2/mod.yaml
  14. + sed -i "s/maps\/d2\/{DEV_VERSION}/maps\/d2\/$d2_version/g" $srcdir/$pkgname-src/mods/d2/mod.yaml
  15. +
  16. # Move Red Alert 2 Github files to the right place:
  17. cd "$srcdir/ra2"
  18. mv ./OpenRA.Mods.RA2 "$srcdir/$pkgname-src/"