SHARE
TWEET

Untitled

a guest Jul 7th, 2017 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. pkgbase=freeciv-git
  3. pkgname=('freeciv-git' 'freeciv-sdl-git' 'freeciv-qt-git')
  4. pkgver=2.6
  5. pkgrel=1
  6. pkgdesc='A multiuser clone of the famous Microprose game of Civilization'
  7. arch=('i686' 'x86_64')
  8. url='http://freeciv.org'
  9. license=('GPL')
  10. depends=('hicolor-icon-theme' 'sdl_mixer')
  11. makedepends=('git' 'curl' 'libtool' 'python' 'gtk3' 'qt5-base' 'sdl2_image' 'sdl2_mixer' 'sdl2_gfx' 'sdl2_ttf')
  12. conflicts=('freeciv' 'freeciv-svn' 'freeciv-sdl')
  13. options=('!libtool')
  14. source=('git+https://github.com/freeciv/freeciv.git')
  15. sha256sums=('SKIP')
  16.  
  17. prepare() {
  18.   cd freeciv
  19.  
  20.   autoreconf -vi
  21. }
  22.  
  23. build() {
  24.   cd freeciv
  25.  
  26.   ./configure --prefix=/usr --sysconfdir=/etc --enable-shared \
  27.     --enable-client=gtk3,sdl2,qt
  28.  
  29.   make -j5
  30. }
  31.  
  32. package_freeciv-git() {
  33.   depends=('gtk3' 'sdl2_mixer')
  34.   conflicts=('freeciv-sdl2-git' 'freeciv-qt-git')
  35.  
  36.   cd freeciv
  37.  
  38.   make DESTDIR="${pkgdir}" install
  39.  
  40.   rm -rf "${pkgdir}"/usr/bin/freeciv-{sdl2,qt}
  41.   rm -rf "${pkgdir}"/usr/share/applications/freeciv-{sdl2,qt}.desktop
  42. }
  43.  
  44. package_freeciv-sdl-git() {
  45.   depends=('sdl2_image' 'sdl2_mixer' 'sdl2_gfx' 'sdl2_ttf')
  46.   conflicts=('freeciv-git' 'freeciv-qt-git')
  47.  
  48.   cd freeciv
  49.  
  50.   make DESTDIR="${pkgdir}" install
  51.  
  52.   rm -rf "${pkgdir}"/usr/bin/freeciv-{gtk3,qt}
  53.   rm -rf "${pkgdir}"/usr/share/applications/freeciv{,-qt}.desktop
  54. }
  55.  
  56. package_freeciv-qt-git() {
  57.   depends=('qt5-base' 'sdl2_mixer')
  58.   conflicts=('freeciv-git' 'freeciv-sdl-git')
  59.  
  60.   cd freeciv
  61.  
  62.   make DESTDIR="${pkgdir}" install
  63.  
  64.   rm -rf "${pkgdir}"/usr/bin/freeciv-{sdl2,gtk3}
  65.   rm -rf "${pkgdir}"/usr/share/applications/freeciv{,-sdl2}.desktop
  66. }
  67.  
  68. # vim: ts=2 sw=2 et:
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top