SHARE
TWEET

Toki Tori PKGBUILD

a guest Jul 5th, 2013 42 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: Vianney le Clément <vleclement AT gmail · com>
  2. pkgname=tokitori-hb
  3. pkgver=20130703
  4. pkgrel=1
  5. pkgdesc="A highly entertaining puzzle platformer (Humble Bundle copy required)"
  6. arch=('i686' 'x86_64')
  7. url="http://www.tokitori.com/"
  8. license=('custom:commercial')
  9. groups=('humblebundleandroid')
  10. depends=('libgl' 'libxft')
  11. makedepends=('tar')
  12. options=(!strip)
  13. source=('TokiTori-HIB-3.sh'
  14.         'tokitori.desktop')
  15. md5sums=('2d3989ff6d855b0c17f2e4e72e57cbf2'
  16.          '1f829157625accf6c1ff8917edd148c4')
  17. #PKGEXT='.pkg.tar'
  18.  
  19. _carch=${CARCH/i686/x86}
  20.  
  21. package() {
  22.   cd "$srcdir"
  23.  
  24.   sh TokiTori-HIB-3.sh --tar xf
  25.   _lzma="bin/linux/$_carch/libc.so.6/lzma d"
  26.   $_lzma subarch - | tar xv
  27.  
  28.   mkdir -p "${pkgdir}/opt/twotribes/tokitori"
  29.   $_lzma "instarchive_all" - | tar xv -C "${pkgdir}/opt/twotribes/tokitori/"
  30.   $_lzma "instarchive_all_$_carch" - | tar xv -C "${pkgdir}/opt/twotribes/tokitori/"
  31. #  chown -R root:root "${pkgdir}/opt/Toki Tori/" - all files are automatically installed as owned by root by pacman
  32.  
  33.   install -d "${pkgdir}/usr/bin"
  34.   ln -s "/opt/twotribes/tokitori/TokiTori.bin.${_carch}" "${pkgdir}/usr/bin/tokitori"
  35.  
  36.   install -Dm644 tokitori.desktop "${pkgdir}/usr/share/applications/tokitori.desktop"
  37. }
  38.  
  39. # vim:set 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
Top