Advertisement
Guest User

PKGBUILD for lighttable-git

a guest
Jul 3rd, 2015
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.52 KB | None | 0 0
  1. # Maintainer: Tony Sokhon <tonyskn@gmail.com>
  2. # Contributor: Ebubekir KARUL <ebubekirkarul@yandex.com>
  3. # Contributor: Gaurish Sharma <contact@gaurishsharma.com>
  4. # Contributor: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
  5. # Contributor: Katrina L. Halliwell <rambaldi.kat.47@gmail.com>
  6. # Contributor: Alexey Stukalov <astukalov@gmail.com>
  7.  
  8. pkgname=lighttable-git
  9. _pkgname=LightTable
  10. pkgver=0.7.2.r161.g8b9b4c9
  11. pkgrel=1
  12. pkgdesc="New interactive IDE that lets you modify running programs and embed anything from websites to games."
  13. url="http://www.lighttable.com/"
  14. license=('GPLv3')
  15. conflicts=('lighttable')
  16. depends=(nss libx11 libxrandr libpng gconf)
  17. makedepends=(npm leiningen git)
  18. options=(!strip)
  19. arch=('i686' 'x86_64')
  20.  
  21. source=(git://github.com/LightTable/LightTable
  22.     lighttable.desktop
  23.     lighttable.png)
  24. md5sums=('SKIP'
  25.      '04a62702b59810a36bca7623bf9e932c'
  26.      'f8c055be2f047ff4aaffdd028f62f027')
  27.  
  28. pkgver() {
  29.   cd "$_pkgname"
  30.   git describe --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
  31. }
  32.  
  33. build() {
  34.   cd LightTable
  35.   bash ./script/build.sh
  36. }
  37.  
  38. package() {
  39.   _destdir="$pkgdir/opt/LightTable"
  40.  
  41.   install -dm755 $_destdir
  42.   mv LightTable/builds/lighttable-*-linux/* $_destdir
  43.  
  44.   mkdir -p "${pkgdir}"/usr/share/{applications,pixmaps}
  45.   install -m644 "${startdir}"/lighttable.desktop "${pkgdir}/usr/share/applications/"
  46.   install -m644 "${startdir}"/lighttable.png "${pkgdir}"/usr/share/pixmaps/lighttable.png
  47.  
  48.   mkdir -p "${pkgdir}"/usr/bin
  49.   ln -s /opt/LightTable/light "$pkgdir/usr/bin/lighttable"
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement