diff options
author | dzwdz | 2023-06-25 16:38:32 +0200 |
---|---|---|
committer | dzwdz | 2023-06-25 16:38:32 +0200 |
commit | d4542c336a6cbfb43497055f19a85e7713f2eed7 (patch) | |
tree | 9f4a68974c3392b0ea546ecc94324911e86f0528 /ports/lua | |
parent | fffd37f1680664bf055d8f5603ed1967718a6492 (diff) |
ports: reimplement the ports system from scratch
side stuff:
* removed sltar since it wasn't working anyways
* made signal() no longer panic, as that broke certain ports (oops)
* doom now ships with the FreeDOOM WADs
* /usr/ was aliased to /init/usr/, more directories were added to /bin/
to improve compat with ports
Diffstat (limited to 'ports/lua')
-rw-r--r-- | ports/lua | 20 | ||||
-rwxr-xr-x | ports/lua/port | 15 | ||||
-rw-r--r-- | ports/lua/sha256sums | 1 |
3 files changed, 16 insertions, 20 deletions
diff --git a/ports/lua b/ports/lua deleted file mode 100644 index 46f995f..0000000 --- a/ports/lua +++ /dev/null @@ -1,20 +0,0 @@ -set -eu -camellia_path_check - -VERSION=lua-5.4.4 - -fetch() { - wget http://www.lua.org/ftp/${VERSION}.tar.gz - tar xf ${VERSION}.tar.gz -} - -prep() { - [ -d ${VERSION} ] || (fetch) - cd ${VERSION} -} - -case $1 in - install) (prep; make generic "CC=x86_64-camellia-gcc" "MYCFLAGS=-Werror" && make install "INSTALL_TOP=$PREFIX") ;; - clean) (prep; make clean) ;; - *) echo "usage: $0 install|clean"; false ;; -esac diff --git a/ports/lua/port b/ports/lua/port new file mode 100755 index 0000000..d059caa --- /dev/null +++ b/ports/lua/port @@ -0,0 +1,15 @@ +#!/bin/sh +. ports/pre + +pkg=lua +tarball=lua-5.4.4.tar.gz +tarball_dir=lua-5.4.4 +url=https://www.lua.org/ftp/${tarball} + +MAKEFLAGS="$MAKEFLAGS INSTALL_TOP=$DESTDIR/usr/ PLAT=generic" + +relink() { + rm $tarball_dir/lua +} + +. ports/post diff --git a/ports/lua/sha256sums b/ports/lua/sha256sums new file mode 100644 index 0000000..28770c7 --- /dev/null +++ b/ports/lua/sha256sums @@ -0,0 +1 @@ +164c7849653b80ae67bec4b7473b884bf5cc8d2dca05653475ec2ed27b9ebf61 lua-5.4.4.tar.gz |