From b5695501602444dfad98aa340c317331d370f96f Mon Sep 17 00:00:00 2001 From: Tim Biermann Date: Sun, 27 Aug 2023 17:52:21 +0200 Subject: [PATCH] lua52: adopted port --- lua52/.signature | 4 +-- lua52/Pkgfile | 64 +++++++++++++++++++++++++----------------------- 2 files changed, 35 insertions(+), 33 deletions(-) diff --git a/lua52/.signature b/lua52/.signature index 3a5a870e4..90c192e4e 100644 --- a/lua52/.signature +++ b/lua52/.signature @@ -1,6 +1,6 @@ untrusted comment: verify with /etc/ports/opt.pub -RWSE3ohX2g5d/Yy7F/+N2jEOhubUt8lfr5Q6E23gU/6dGngCupWEoK3d+JST8JIQ8gFEIwuQ0PkSRRgmwp/RkZieDzf0VyaB1Aw= -SHA256 (Pkgfile) = 404c4578fa263ae63d7ea95ebdafb9c514703233bcf3e18ff63063dee937af7b +RWSE3ohX2g5d/fhiumEmPpAiTmKTvcf2y4/ZIR+SfpQG9/HW99pHlzhMiMfjGGaQ4eS6+QzAQkTD7jamyw/JLaBwnAvfA0UAAwQ= +SHA256 (Pkgfile) = ec9ccd096f9bb8d7e2b695cbe439cce797364f961a670acffb5a68f752e2c404 SHA256 (.footprint) = c2f5517f192c7c7ed4511899abf30b7ee966d96bc1295c5cc401e0137b9dd798 SHA256 (lua-5.2.4.tar.gz) = b9e2e4aad6789b3b63a056d442f7b39f0ecfca3ae0f1fc0ae4e9614401b69f4b SHA256 (lua.diff) = e9638e7767244b1f4991088b3786f1a36235935b3161690d2b2e188a896fc1af diff --git a/lua52/Pkgfile b/lua52/Pkgfile index 4bc6bd7a0..260befeb7 100644 --- a/lua52/Pkgfile +++ b/lua52/Pkgfile @@ -1,47 +1,49 @@ -# Description: A programming language designed for extending applications. -# URL: http://www.lua.org/ -# Maintainer: Danny Rawlins, crux at romster dot me +# Description: A programming language designed for extending applications +# URL: https://www.lua.org/ +# Maintainer: Tim Biermann, tbier at posteo dot de # Depends on: readline name=lua52 version=5.2.4 -release=3 +release=4 source=(http://www.lua.org/ftp/lua-$version.tar.gz - lua.diff lua-5.2-cflags.diff lua.pc) + lua.diff lua-5.2-cflags.diff lua.pc) build() { - cd lua-$version + cd lua-$version - patch -p1 -i $SRC/lua.diff - patch -p1 -i $SRC/lua-5.2-cflags.diff + patch -p1 -i $SRC/lua.diff + patch -p1 -i $SRC/lua-5.2-cflags.diff - sed -e "s/%VER%/${version%.*}/g;s/%REL%/$version/g" $SRC/lua.pc > lua.pc - sed -e 's:llua:llua5.2:' -e 's:/include:/include/lua5.2:' -i lua.pc + sed -e "s/%VER%/${version%.*}/g;s/%REL%/$version/g" $SRC/lua.pc > lua.pc + sed -e 's:llua:llua5.2:' -e 's:/include:/include/lua5.2:' -i lua.pc - sed -r \ - -e '/^LUA_(SO|A|T)=/ s/lua/lua5.2/' \ - -e '/^LUAC_T=/ s/luac/luac5.2/' \ - -i src/Makefile + sed -r \ + -e '/^LUA_(SO|A|T)=/ s/lua/lua5.2/' \ + -e '/^LUAC_T=/ s/luac/luac5.2/' \ + -i src/Makefile - make MYCFLAGS="$CFLAGS" MYLDFLAGS="$LDFLAGS" linux + sed -i '/#define LUA_ROOT/s:/usr/local/:/usr/:' src/luaconf.h - install -d $PKG/usr/include/lua5.2 $PKG/usr/share/man/man1 $PKG/usr/lib + make MYCFLAGS="$CFLAGS" MYLDFLAGS="$LDFLAGS" linux - make \ - TO_BIN="lua5.2 luac5.2" \ - TO_LIB="liblua5.2.a liblua5.2.so liblua5.2.so.5.2 liblua5.2.so.$version" \ - INSTALL_DATA='cp -d' \ - INSTALL_TOP="$PKG/usr" \ - INSTALL_INC="$PKG/usr/include/lua5.2" \ - INSTALL_MAN="$PKG/usr/share/man/man1" \ - install + install -d $PKG/usr/include/lua5.2 $PKG/usr/share/man/man1 $PKG/usr/lib - install -m 0644 -D lua.pc $PKG/usr/lib/pkgconfig/lua5.2.pc + make \ + TO_BIN="lua5.2 luac5.2" \ + TO_LIB="liblua5.2.a liblua5.2.so liblua5.2.so.5.2 liblua5.2.so.$version" \ + INSTALL_DATA='cp -d' \ + INSTALL_TOP="$PKG/usr" \ + INSTALL_INC="$PKG/usr/include/lua5.2" \ + INSTALL_MAN="$PKG/usr/share/man/man1" \ + install - # fixups - ln -s liblua5.2.so $PKG/usr/lib/liblua.so.5.2 - ln -s liblua5.2.so $PKG/usr/lib/liblua.so.$version - cd $PKG/usr/share/man/man1 - mv lua.1 lua5.2.1 - mv luac.1 luac5.2.1 + install -m 0644 -D lua.pc $PKG/usr/lib/pkgconfig/lua5.2.pc + + # fixups + ln -s liblua5.2.so $PKG/usr/lib/liblua.so.5.2 + ln -s liblua5.2.so $PKG/usr/lib/liblua.so.$version + cd $PKG/usr/share/man/man1 + mv lua.1 lua5.2.1 + mv luac.1 luac5.2.1 }