Want more features on Pastebin? Sign Up, it's FREE!
Guest

openxcom PKGBUILD

By: a guest on May 15th, 2013  |  syntax: Bash  |  size: 2.05 KB  |  views: 37  |  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. # Contributor: Anton Bazhenov <anton.bazhenov at gmail>
  2. # Maintainer: TheBenj88 <thebenj88 *AT* gmail *DOT* com>
  3.  
  4. pkgname=openxcom
  5. pkgver=0.9
  6. pkgrel=2
  7. pkgdesc="An open-source reimplementation of the famous X-COM game"
  8. arch=('i686' 'x86_64')
  9. url="http://openxcom.org/"
  10. license=('GPL3')
  11. depends=('sdl' 'gcc-libs' 'sdl_gfx' 'sdl_mixer' 'sdl_image' 'timidity++' 'yaml-cpp0.3' 'mesa' 'glu')
  12. install="${pkgname}.install"
  13. source=("https://github.com/SupSuper/OpenXcom/tarball/v${pkgver}"
  14.                 "${pkgname}.install"
  15.                 "${pkgname}.png"
  16.                 "${pkgname}.desktop")
  17. sha256sums=('340ff7292baa9a2b7ce4b244cc6dc0200c1d3b807a59087ef9827bba5c135634'
  18.             '102150a0124ffe1fe1ab11f05d2e7a8c8e20decba9cef78fa831fc2429cc8e46'
  19.             '4b46d69031f223beaa3bfe90f327652a2b3c4db07fa7bfe40cc44436c22d2c52'
  20.             'a12a22370a0246d7670a6117b6b7523b68eb74236e8de81503ac8d0b7bed64f0')
  21.  
  22. build() {
  23.   cd "${srcdir}/SupSuper-OpenXcom-5c8b540/src"
  24.   mv Makefile.simple Makefile
  25.   # Fix a problem with yaml-cpp and pkg-config
  26.   sed -i "s_--cflags sdl yaml-cpp\`_--cflags sdl\` -I/usr/include/yaml-cpp_" Makefile
  27.   # Fix a compilation error
  28.   sed -i "s_?=_+=_" Makefile
  29.  
  30.   make || return 1
  31. }
  32.  
  33. package() {
  34.   cd "${srcdir}/SupSuper-OpenXcom-5c8b540"
  35.  
  36.   # Install binary
  37.   install -Dm755 "bin/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
  38.  
  39.   # Install data files
  40.   mkdir -p "${pkgdir}/usr/share/${pkgname}/data/"{Language,SoldierName,Shaders,Ruleset}
  41.   install -m644 bin/data/Language/* "${pkgdir}/usr/share/${pkgname}/data/Language"
  42.   install -m644 bin/data/SoldierName/* "${pkgdir}/usr/share/${pkgname}/data/SoldierName"
  43.   install -m644 bin/data/Shaders/* "${pkgdir}/usr/share/${pkgname}/data/Shaders"
  44.   install -m644 bin/data/Ruleset/* "${pkgdir}/usr/share/${pkgname}/data/Ruleset"
  45.  
  46.   # Install Desktop Files
  47.   install -Dm755 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
  48.   install -Dm644 "${srcdir}/${pkgname}.png" "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
  49.  
  50.   # Install readme
  51.   install -Dm644 README.txt "${pkgdir}/usr/share/doc/${pkgname}/README"
  52. }
clone this paste RAW Paste Data