summaryrefslogtreecommitdiffstats
path: root/main/lua-pty/APKBUILD
blob: f9eed9f067287bac63067b35775743a21215a566 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=lua-pty
_name=lpty
pkgver=0.9.1
_ver=${pkgver%.*}
_pver=${pkgver##*.}
pkgrel=0
pkgdesc="Lua module to control other programs via PTYs."
url="http://www.tset.de/lpty/"
arch="x86 x86_64"
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="936be0bb1018de37370df9c32eebb8bb  lpty-0.9-1.tar.gz"