Skip to content
Snippets Groups Projects
Commit 9c484652 authored by Natanael Copa's avatar Natanael Copa
Browse files

main/lua-pty: fix source url

parent cd4b1758
No related branches found
No related tags found
No related merge requests found
......@@ -3,13 +3,14 @@ pkgname=lua-pty
_pkgname=lpty
pkgver=1.2.2
_rockver=1
pkgrel=2
pkgrel=3
pkgdesc="Lua module to control other programs via PTYs"
url="https://www.tset.de/lpty/"
arch="all"
license="MIT"
source="http://www.tset.de/downloads/$_pkgname-$pkgver-$_rockver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver-$_rockver"
source=$pkgname-$pkgver.tar.gz::https://codeberg.org/gnarz/lpty/archive/version_$pkgver.tar.gz
builddir="$srcdir/lpty"
_luaversions="5.1 5.2 5.3 5.4"
for _v in $_luaversions; do
......@@ -29,7 +30,7 @@ build() {
local lver; for lver in $_luaversions; do
msg "Building for Lua $lver..."
cd "$builddir-$lver"
cd "$builddir-$lver"/src
make CFLAGS="$CFLAGS -fPIC" \
LUA_INCDIR="$(pkg-config --variable=includedir lua$lver)" \
LUA_LIBDIR="$(pkg-config --variable=libdir lua$lver)" \
......@@ -49,11 +50,13 @@ _subpackage() {
install_if="$pkgname=$pkgver-r$pkgrel lua$lver"
[ "$lver" = 5.1 ] && replaces="$pkgname"
cd "$builddir-$lver"
cd "$builddir-$lver"/src
make INST_DIR="$subpkgdir/usr" LUAVERSION=$lver install
mkdir -p "$rockdir"
echo 'rock_manifest = {}' > "$rockdir"/rock_manifest
}
sha512sums="6251f8394be53ab812bb3483fcd8280c9cf8d63590534864b439f5357a4c11507c3a7d6e03efa11018547435f7eede6ea5896a39f0d9ddaaf3f4f41f7827ba96 lpty-1.2.2-1.tar.gz"
sha512sums="
25dda2fee2228fb323a201231eeb50fe375d25cc863f544666698e2d9359f29fd3745994f7fd4d06be4982ebb83d135d3db294158af848b077daadbfbb3391f6 lua-pty-1.2.2.tar.gz
"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment