# Contributor: # Maintainer: pkgname=lua-pty _name=lpty pkgver=0.8.2 _ver=${pkgver%.*} _pver=${pkgver##*.} pkgrel=0 pkgdesc="Lua module to control other programs via PTYs." url="http://www.tset.de/lpty/" license="MIT/X11" depends= makedepends="lua-dev" subpackages= source="http://www.tset.de/downloads/lpty-${_ver}-${_pver}.tar.gz" _builddir="$srcdir"/lpty-${_ver}-${_pver} prepare() { cd "$_builddir" } build() { cd "$_builddir" gcc -fPIC -shared -o lpty.so lpty.c } package() { cd "$_builddir" install -D lpty.so "$pkgdir"/usr/lib/lua/5.1/lpty.so } md5sums="58e99745bd239a0b97191bf4ce11d15f lpty-0.8-2.tar.gz"