SHARE
TWEET

Stone Soup git PKGBUILD

fredbezies Aug 1st, 2018 138 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: Jakob Gruber <jakob.gruber@gmail.com>
  2.  
  3. pkgname=stone-soup-git
  4. _pkgname=stone-soup
  5. pkgver=0.23.a0.8.gb809bb70e4
  6. pkgrel=1
  7. pkgdesc="An open-source, single-player, role-playing roguelike game of exploration and treasure-hunting"
  8. arch=('i686' 'x86_64' 'ppc')
  9. url='http://crawl.develz.org/'
  10. depends=('lua51' 'ncurses' 'sdl2_image' 'sqlite' 'glu' 'freetype2' 'ttf-dejavu')
  11. makedepends=('git' 'bison' 'flex')
  12. conflicts=('crawl' 'stone-soup' 'stone-soup-tile')
  13. license=('custom')
  14. backup=('usr/share/stone-soup/data/settings/tiles_options.txt'
  15.         'usr/share/stone-soup/data/settings/init.txt')
  16. source=("${_pkgname}.desktop"
  17.         "git+https://github.com/crawl/crawl.git")
  18. md5sums=('98be780cddb2a0915bbab15ad93644f1'
  19.          'SKIP')
  20.  
  21. pkgver() {
  22.     cd $srcdir/crawl
  23.     git describe | sed 's#-#.#g'
  24. }
  25.  
  26. package() {
  27.     cd $srcdir/crawl/crawl-ref/source
  28.  
  29.     # adjust makefile to use /usr/bin, owner root:root, disable setgid on executable
  30.  
  31.     sed -i 's|bin_prefix    := bin|bin_prefix    := usr/bin|' Makefile
  32.     sed -i 's/INSTALL_UGRP := games:games/INSTALL_UGRP := root:root/' Makefile
  33.     sed -i 's|MCHMOD := 2755|MCHMOD := 755|' Makefile
  34.  
  35.     # first build and install tiles version
  36.  
  37.     make DESTDIR="${pkgdir}" \
  38.          SAVEDIR="~/.stone-soup/" \
  39.          DATADIR="/usr/share/${_pkgname}/data" \
  40.          USE_UNICODE=y \
  41.          TILES=y \
  42.          install
  43.  
  44.     # rename tiles executable to avoid clashing with console crawl
  45.  
  46.     mv "${pkgdir}/usr/bin/crawl" "${pkgdir}/usr/bin/crawl-tiles"
  47.  
  48.     # then build and install console version
  49.  
  50.     make DESTDIR="${pkgdir}" \
  51.          SAVEDIR="~/.stone-soup/" \
  52.          DATADIR="/usr/share/${_pkgname}/data" \
  53.          USE_UNICODE=y \
  54.          install
  55.  
  56.     # install crawl license
  57.  
  58.     install -D -m644 ../licence.txt "${pkgdir}/usr/share/licenses/${_pkgname}/license.txt"
  59.  
  60.     # install icon and .desktop file
  61.  
  62.     install -D -m644 dat/tiles/stone_soup_icon-32x32.png "${pkgdir}/usr/share/pixmaps/${_pkgname}.png"
  63.     install -D -m644 "${srcdir}/${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${_pkgname}.desktop"
  64.  
  65. }
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
 
Top