SHARE
TWEET

PKGBUILD for FTL.1.6.9

a guest Feb 24th, 2019 150 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: Tharre <tharre3@gmail.com>
  2. # Contributor: Dennis Hamester <dennis [dot] hamester [at] gmail [dot] com>
  3. # Contributor: J0k3r <moebius282 e4at gmail D0_T com>
  4.  
  5. pkgname=ftl
  6. pkgver=1.6.9
  7. pkgrel=1
  8. pkgdesc="FTL: Faster Than Light, a spaceship simulation real-time roguelike-like (requires full copy of the game)"
  9. license=('custom:commercial')
  10. arch=('i686' 'x86_64')
  11. url="http://www.ftlgame.com/"
  12. depends=('gcc-libs' 'glu')
  13. makedepends=('imagemagick')
  14. _gamepkg="FTL.${pkgver}.tar.gz"
  15.  
  16. # You can download the Humble Indie Bundle file manually, or you can configure
  17. # DLAGENTS in makepkg.conf to auto-download.
  18. #
  19. # For example, to use hib-dlagent to download files set something like this in
  20. # your makepkg.conf (change/add -k and add -u/-p to your needs):
  21. # DLAGENTS=('hib::/usr/bin/hib-dlagent -k 1a2b3c -o %o $(echo %u | cut -c 7-)')
  22. #
  23. # To auto-search through a directory containing Humble Bundle downloads, you
  24. # could set:
  25. # DLAGENTS=('hib::/usr/bin/find /path/to/downloads -name $(echo %u | cut -c 7-) -exec ln -s \{\} %o \; -quit')
  26. DLAGENTS+=('hib::/usr/bin/echo "Could not find %u. Download manually to \"$(pwd)\" or setup hib:// DLAGENT in /etc/makepkg.conf."; exit 1')
  27.  
  28. source=("${_gamepkg}"::"hib://${_gamepkg}"
  29.         ${pkgname}.sh
  30.         ${pkgname}.desktop)
  31. md5sums=('c70d9cbc55217a5f83e0d51189240ec2'
  32.          'c415361a58df0857d9a42653fdaadd5a'
  33.          'f7a67ce1e0311d98f41e6d80d872cb97')
  34. PKGEXT='.pkg.tar'
  35.  
  36. package() {
  37.   install -dm755 "${pkgdir}/opt/${pkgname}"
  38.   cp -r "${srcdir}/FTL-linux/"* "${pkgdir}/opt/${pkgname}/"
  39.  
  40.   # fix file permissions
  41.   find "${pkgdir}/opt/${pkgname}" -type d -exec chmod 755 {} +
  42.   find "${pkgdir}/opt/${pkgname}" -type f -exec chmod 644 {} +
  43.   chmod 755 "${pkgdir}/opt/${pkgname}/FTL"
  44.   chmod 755 "${pkgdir}/opt/${pkgname}/data/FTL"
  45.  
  46.   if [ "${CARCH}" = "i686" ]; then
  47.     find "${pkgdir}/opt/${pkgname}/data/FTL.x86" -type f -exec chmod 755 {} +
  48.   else
  49.     find "${pkgdir}/opt/${pkgname}/data/FTL.amd64" -type f -exec chmod 755 {} +
  50.   fi
  51.  
  52.   install -Dm755 "${srcdir}/${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}"
  53.   install -Dm644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
  54.   install -dm755 "${pkgdir}/usr/share/pixmaps/${pkgname}"
  55.   convert "${pkgdir}/opt/${pkgname}/data/exe_icon.bmp" "${pkgdir}/usr/share/pixmaps/${pkgname}/${pkgname}.png"
  56.   install -dm755 "${pkgdir}/usr/share/licenses"
  57.   ln -s "/opt/${pkgname}/data/licenses/" "${pkgdir}/usr/share/licenses/${pkgname}"
  58. }
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