Last active
August 29, 2015 14:19
-
-
Save kyrylo/9378ffd88fb7ee1f3f3b to your computer and use it in GitHub Desktop.
openra-20150424 PKGBUILD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
post_upgrade() { | |
update-desktop-database -q | |
gtk-update-icon-cache -q -t -f usr/share/icons/hicolor | |
} | |
post_install() { | |
echo "If the game doesn't run, try using the Cg renderer ~/.openra/settings.yaml like so:" | |
echo "Graphics:" | |
echo " Renderer: Cg" | |
echo "Be careful to only use one indenting tab with 8 shift width." | |
post_upgrade | |
} | |
post_remove() { | |
echo "openra downloaded data files to ~/.openra/Content and you might want" | |
echo "to delete those." | |
post_upgrade | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# $Id$ | |
# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com> | |
# Contributor: Matthew Bowra-Dean <matthew@ijw.co.nz> | |
pkgname=openra | |
pkgver=20150424 | |
pkgrel=1 | |
pkgdesc="An open-source implementation of the Red Alert engine using .NET/mono and OpenGL" | |
arch=('any') | |
url="http://openra.net" | |
license=('GPL3') | |
install=openra.install | |
depends=('mono' 'ttf-dejavu' 'openal' 'libgl' 'freetype2' 'sdl2' 'lua51' 'hicolor-icon-theme' 'gtk-update-icon-cache' 'desktop-file-utils' 'xdg-utils' 'zenity') | |
makedepends=('git' 'unzip') | |
optdepends=('nvidia-cg-toolkit: for using the alternative Cg renderer') | |
options=(!strip) | |
source=("git+https://github.com/OpenRA/OpenRA.git#tag=release-${pkgver}") | |
md5sums=('SKIP') | |
build() { | |
cd OpenRA | |
./configure | |
make cli-dependencies | |
make core | |
make tools | |
make version | |
} | |
package() { | |
cd OpenRA | |
make prefix=/usr DESTDIR="$pkgdir" install-all | |
make prefix=/usr DESTDIR="$pkgdir" install-linux-shortcuts | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment