SHARE
TWEET

Untitled

a guest Jul 7th, 2017 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. pkgbase=freeciv-git
  3. pkgname=('freeciv-git' 'freeciv-gtk3-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')
  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
  30. }
  31.  
  32. package_freeciv-git() {
  33.   cd freeciv
  34.  
  35.   make DESTDIR="${pkgdir}" install
  36.  
  37.   rm -rf "${pkgdir}"/usr/bin/freeciv-{gtk3,sdl2,qt}
  38.   rm -rf "${pkgdir}"/usr/share/applications/freeciv{,-sdl2,-qt}.desktop
  39. }
  40.  
  41. package_freeciv-gtk3-git() {
  42.   depends=('freeciv-git' 'gtk3')
  43.  
  44.   cd freeciv
  45.  
  46.   install -dm 755 "${pkgdir}"/usr/bin
  47.   install -dm 755 "${pkgdir}"/usr/share/applications
  48.   install -m 755 client/freeciv-gtk3 "${pkgdir}"/usr/bin/
  49.   install -m 755 client/freeciv.desktop "${pkgdir}"/usr/share/applications/
  50. }
  51.  
  52. package_freeciv-sdl-git() {
  53.   depends=('freeciv-git' 'sdl2_image' 'sdl2_mixer' 'sdl2_gfx' 'sdl2_ttf')
  54.  
  55.   cd freeciv
  56.  
  57.   install -dm 755 "${pkgdir}"/usr/bin
  58.   install -dm 755 "${pkgdir}"/usr/share/applications
  59.   install -m 755 client/freeciv-sdl2 "${pkgdir}"/usr/bin/
  60.   install -m 755 client/freeciv-sdl2.desktop "${pkgdir}"/usr/share/applications/
  61. }
  62.  
  63. package_freeciv-qt-git() {
  64.   depends=('freeciv-git' 'qt5-base')
  65.  
  66.   cd freeciv
  67.  
  68.   install -dm 755 "${pkgdir}"/usr/bin
  69.   install -dm 755 "${pkgdir}"/usr/share/applications
  70.   install -m 755 client/freeciv-qt "${pkgdir}"/usr/bin/
  71.   install -m 755 client/freeciv-qt.desktop "${pkgdir}"/usr/share/applications/
  72. }
  73.  
  74. # 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