Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

textadept PKGBUILD

By: allencch on Feb 18th, 2013  |  syntax: Bash  |  size: 1.58 KB  |  views: 51  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: Ivan de Jesús Pompa García <ivan.pompa@gmx.com>
  2.  
  3. pkgname=textadept-latest-stable
  4. pkgver=6.3
  5. pkgrel=1
  6. pkgdesc="A fast, minimalist, and ridiculously extensible cross-platform text editor. Package for GTK3."
  7. arch=('i686' 'x86_64')
  8. url="http://foicica.com/textadept"
  9. license=('MIT')
  10.  
  11. depends=('gtk3'
  12.         'lua'
  13.         'desktop-file-utils')
  14.  
  15. conflicts=('textadept textadept-latest-stable')
  16. provides=('textadept')
  17.  
  18. source=("http://foicica.com/textadept/download/textadept_${pkgver}.src.zip"
  19.                 "textadept.desktop"
  20.                 "textadept.install")
  21.  
  22. md5sums=("28c0fe3978c6db3e66eaf3b8bc45903f"
  23.                 "f73f31facd5d77da09c566b743d062e7"
  24.                 "4b21bad3aab0a2200be168f9875195ae")
  25.  
  26.  
  27. build() {
  28.         cd ${srcdir}/textadept_${pkgver}.src/src
  29.         make GTK3=1 -e CXX="g++ -lgmodule-2.0 -llua -lm -ldl" || return 1
  30.         make GTK3=1 -e CXX="g++ -lgmodule-2.0 -llua -lm -ldl" ncurses || return 1
  31.  
  32.         if [ ! -d "${pkgdir}/usr/share/textadept" ]; then
  33.                 mkdir -p ${pkgdir}/usr/share/textadept
  34.         fi
  35.  
  36.         if [ ! -d "${pkgdir}/usr/share/doc/textadept" ]; then
  37.                 mkdir -p ${pkgdir}/usr/share/doc/textadept
  38.         fi
  39.  
  40.         cd ${srcdir}/textadept_${pkgver}.src
  41.         cp -R -t ${pkgdir}/usr/share/textadept core init.lua lexers LICENSE \
  42.                 modules themes textadept textadept-ncurses
  43.         cp -R doc/* ${pkgdir}/usr/share/doc/textadept
  44.  
  45.         install -D -m644 ${startdir}/textadept.desktop \
  46.                 ${pkgdir}/usr/share/applications/${pkgname}.desktop
  47.                
  48.         mkdir -p ${pkgdir}/usr/bin
  49.         ln -s /usr/share/textadept/textadept ${pkgdir}/usr/bin/textadept
  50.         ln -s /usr/share/textadept/textadept-ncurses ${pkgdir}/usr/bin/textadept-ncurses
  51. }
  52.  
  53. install=textadept.install