Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

PKGBUILD for OpenXcom (GIT version)

By: EasySly on May 15th, 2013  |  syntax: Bash  |  size: 1.23 KB  |  views: 43  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. pkgname=openxcom-git
  2. pkgver=20120913
  3. pkgrel=2
  4. pkgdesc="Open-source engine for the original XCOM: Enemy Unknown. Needs the official data files separately."
  5. arch=('i686' 'x86_64')
  6. url="http://openxcom.org/"
  7. license=('GPL')
  8. groups=()
  9. depends=('sdl' 'sdl_mixer' 'sdl_gfx' 'yaml-cpp0.3' 'mesa' 'glu')
  10. makedepends=('git' 'cmake' 'doxygen')
  11. optdepends=('timidity++: music output')
  12. provides=()
  13. conflicts=('openxcom')
  14. replaces=()
  15. backup=()
  16. options=()
  17. install=openxcom-git.install
  18. source=()
  19. noextract=()
  20. md5sums=()
  21.  
  22. _gitroot=git://github.com/SupSuper/OpenXcom.git
  23. _gitname=OpenXcom
  24.  
  25. build() {
  26.   cd "$srcdir"
  27.   msg "Connecting to GIT server...."
  28.  
  29.   if [[ -d "$_gitname" ]]; then
  30.     cd "$_gitname" && git pull origin
  31.     msg "The local files are updated."
  32.   else
  33.     git clone "$_gitroot" "$_gitname"
  34.   fi
  35.  
  36.   msg "GIT checkout done or server timeout"
  37.   msg "Starting build..."
  38.  
  39.   rm -rf "$srcdir/$_gitname-build"
  40.   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
  41.   cd "$srcdir/$_gitname-build"
  42.  
  43.   ./autogen.sh
  44.   ./configure
  45.   cmake -D DATADIR=/usr/share/openxcom -D CMAKE_INSTALL_PREFIX=/usr .
  46. }
  47.  
  48. package() {
  49.   cd "$srcdir/$_gitname-build"
  50.   make -j 4 DESTDIR="$pkgdir/" install
  51. }
  52.  
  53. # vim:set ts=2 sw=2 et: