From e1c991185c594db7cc8978ed0239ebca4d37560e Mon Sep 17 00:00:00 2001 From: root Date: Wed, 16 Jan 2013 00:05:27 -0800 Subject: Wed Jan 16 00:05:27 PST 2013 --- community/gemrb/PKGBUILD | 34 ++++++++++++++++++++++++++++++++++ community/gemrb/gemrb.install | 24 ++++++++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 community/gemrb/PKGBUILD create mode 100644 community/gemrb/gemrb.install (limited to 'community/gemrb') diff --git a/community/gemrb/PKGBUILD b/community/gemrb/PKGBUILD new file mode 100644 index 000000000..4a2ea9180 --- /dev/null +++ b/community/gemrb/PKGBUILD @@ -0,0 +1,34 @@ +# $Id: PKGBUILD 82325 2013-01-15 11:15:34Z stativ $ +# Maintainer: Lukas Jirkovsky +pkgname=gemrb +pkgver=0.7.2 +pkgrel=2 +pkgdesc="OSS implementation of Bioware's Infinity Engine which supports eg. Baldur's Gate" +arch=('i686' 'x86_64') +url="http://www.gemrb.org/" +license=('GPL') +depends=('python2' 'openal' 'libpng' 'sdl_mixer') +# optionally it is possible to build vlc plugin too +makedepends=('cmake') +install=gemrb.install +options=('!libtool') +source=("http://downloads.sourceforge.net/sourceforge/gemrb/$pkgname-$pkgver.tar.gz") +md5sums=('4260fcd42f42ce9232668b202b320b29') + +build() { + cd "$srcdir/$pkgname-$pkgver" + + if [ ! -d "$srcdir/build" ] ; then + mkdir "$srcdir/build" + fi + cd "$srcdir/build" + + cmake -DCMAKE_INSTALL_PREFIX=/usr ../$pkgname-$pkgver + make +} + +package() { + cd "$srcdir"/build + make DESTDIR="$pkgdir" install +} + diff --git a/community/gemrb/gemrb.install b/community/gemrb/gemrb.install new file mode 100644 index 000000000..43ea46f2c --- /dev/null +++ b/community/gemrb/gemrb.install @@ -0,0 +1,24 @@ +post_install() { + cat << EOF + +Installing the games +-------------------- + 1. Install the game(s) (eg using wine or Unshield) + 2. Copy /etc/gemrb/GemRB.cfg.sample to ~/.gemrb/gemrb.cfg or to /etc/gemrb/gemrb.cfg + 3. Edit gemrb.cfg, mainly to set up the path to the game's data files. It is crucial to get this right. + 4. Now You can start the game by executing "gemrb" at the command line prompt + +EOF + +gtk-update-icon-cache -f /usr/share/icons/hicolor/ +} + +post_upgrade() { + post_install +} + +post_remove() { + echo "Don't forget to remove game data files." + post_install +} + -- cgit v1.2.3-54-g00ecf