diff options
-rw-r--r-- | main/lua-pty/APKBUILD | 36 |
1 files changed, 16 insertions, 20 deletions
diff --git a/main/lua-pty/APKBUILD b/main/lua-pty/APKBUILD index 0fc4b1d010..22e87558ca 100644 --- a/main/lua-pty/APKBUILD +++ b/main/lua-pty/APKBUILD @@ -1,33 +1,29 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=lua-pty -_name=lpty -pkgver=0.9.1 -_ver=${pkgver%.*} -_pver=${pkgver##*.} -pkgrel=1 +_pkgname=lpty +pkgver=1.2.1 +_rockver=1 +pkgrel=0 pkgdesc="Lua module to control other programs via PTYs." url="http://www.tset.de/lpty/" arch="all" 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" -} +depends="" +makedepends="lua5.1-dev" +source="http://www.tset.de/downloads/$_pkgname-$pkgver-$_rockver.tar.gz" +builddir="$srcdir/$_pkgname-$pkgver-$_rockver" build() { - cd "$_builddir" - gcc -fPIC -shared -o lpty.so lpty.c + cd "$builddir" + make CFLAGS="-fPIC $CFLAGS" \ + LUAROOT=/usr LUA=lua5.1 LUAVERSION=5.1 } package() { - cd "$_builddir" - install -D lpty.so "$pkgdir"/usr/lib/lua/5.1/lpty.so + cd "$builddir" + make INST_DIR="$pkgdir/usr" LUAVERSION=5.1 install } -md5sums="936be0bb1018de37370df9c32eebb8bb lpty-0.9-1.tar.gz" +md5sums="6eadcd08580d8eb5e60abe7273b74d61 lpty-1.2.1-1.tar.gz" +sha256sums="46bf8142ac06a4ed4ac64036f03af63d69a65d3fc03ce578fbb33d56fd5dfb65 lpty-1.2.1-1.tar.gz" +sha512sums="46ffe9f5d9d70bda453c86965b218be4908a965e915aed5e0f4a788f85a8e67e88c9d5aea960048a584bfab08e02b64edfcfafa463bc3821dce056515380e692 lpty-1.2.1-1.tar.gz" |