Ta Pkgbuild

Helps with editing Archlinux's PKGBUILD files, as well as launching makepkg commands.

Author: M Rawash

Usage

Commands

Currently there are 5 available commands:

Note: due to the limits of io.popen in lua, I've introduced another function that will launch commands in a terminal window, to use this function, add use_term=1 in your global, user, or pkgbuild own init.lua file; you can change the default terminal (i.e. xterm) or how it's executed using the variables term_cmd and exec_cmd (both optional), example:

use_term = 1
term_cmd='gnome-terminal -t "makepkg" -e '
function exec_cmd(cmd)
  os.execute(term_cmd..'\"'..cmd..'\" &')
end

Snippets

See snippets.lua (or press ctrl+alt+shift+i) for a list of available snippets.

Install

Place the module directory in /usr/share/textadept/modules or wherever you load your modules from.

Download

You can either download the tarball from here, or use the package available in AUR

Added the file “pkgbuild-module-0-3-tar.gz”.


Edited on Monday, March 12th 2012 at 6:27 PM.