summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2023-07-24 18:49:42 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2023-07-24 18:49:42 +0200
commit23db3d0b1788edf01e9060f77d009a3a671b62c5 (patch)
tree87dd048a9b49ca16fbc99a69f6468d87d74bb530 /scripts
parent6b77186c9cfe1826cdf07660a96dcb70c7a42b42 (diff)
downloadi486tcc-linux-23db3d0b1788edf01e9060f77d009a3a671b62c5.tar.gz
i486tcc-linux-23db3d0b1788edf01e9060f77d009a3a671b62c5.tar.bz2
added lua 5.1 and notion
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build.sh35
-rwxr-xr-xscripts/download.sh5
2 files changed, 35 insertions, 5 deletions
diff --git a/scripts/build.sh b/scripts/build.sh
index 0415bd7..a6e700c 100755
--- a/scripts/build.sh
+++ b/scripts/build.sh
@@ -464,6 +464,36 @@ else
echo "stage1 rxvt exists"
fi
+if [ ! -f "${BASE}/build/stage1/bin/lua" ]; then
+ rm -rf "lua-${LUA_VERSION}"
+ tar xf "${BASE}/downloads/lua-${LUA_VERSION}.tar.gz"
+ cd "lua-${LUA_VERSION}"
+ patch -Np1 < "${BASE}/patches/lua51-no-readline.patch"
+ make -j$CPUS linux CC="${BASE}/build/stage1/bin/i386-tcc" \
+ MYLDFLAGS=-static AR="${BASE}/build/stage1/bin/i386-tcc -ar" RANLIB=echo
+ make -j$CPUS install INSTALL_TOP="${BASE}/build/stage1"
+ cd ..
+else
+ echo "stage1 lua exists"
+fi
+
+if [ ! -f "${BASE}/build/stage1/bin/notion" ]; then
+ rm -rf "notion-${NOTION_VERSION}"
+ tar xf "${BASE}/downloads/notion-${NOTION_VERSION}.tar.gz"
+ cd "notion-${NOTION_VERSION}"
+ patch -Np1 < "${BASE}/patches/notion-minimal.patch"
+# sed -i "s|@@BASE@@|${BASE}|g" mod_tiling/
+ CC="${BASE}/build/stage1/bin/i386-tcc" \
+ make INCLUDE="-I${BASE}/src/stage1/notion-${NOTION_VERSION}" \
+ X11_INCLUDES="-I${BASE}/build/stage1/include" \
+ X11_LIBS="-W,-static -L${BASE}/build/stage1/lib -lX11 -lXext -lX11 -W,-dynamic" \
+ USE_XFT=0 \
+ LUA_VERSION=5.1 PREFIX=/ ETCDIR=/etc/notion
+ cd ..
+else
+ echo "stage1 notion exists"
+fi
+
# TODO FROM HERE
# TODO: have some way to deal with dependencies and with the user
@@ -505,11 +535,6 @@ fi
#~ make LDFLAGS=-static
#~ make install
-#~ cd ../lua
-#~ make linux CC=/data/work/i486/build/stage1/bin/i386-tcc \
- #~ MYLDFLAGS=-static AR='/data/work/i486/build/stage0/bin/i386-tcc -ar' RANLIB=echo
-#~ make install INSTALL_TOP=/data/work/i486/build/stage1
-
#~ cd ../iproute2
#~ PKG_CONFIG=false CC=/data/work/i486/build/stage1/bin/i386-tcc \
#~ ./configure --prefix=/data/work/i486/build/stage1
diff --git a/scripts/download.sh b/scripts/download.sh
index cf5c161..52d2729 100755
--- a/scripts/download.sh
+++ b/scripts/download.sh
@@ -148,6 +148,11 @@ if [ ! -f "${BASE}/downloads/rxvt-${RXVT_VERSION}.tar.gz" ]; then
"https://sourceforge.net/projects/rxvt/files/rxvt/${RXVT_VERSION}/rxvt-${RXVT_VERSION}.tar.gz/download"
fi
+if [ ! -f "${BASE}/downloads/lua-${LUA_VERSION}.tar.gz" ]; then
+ wget -O "${BASE}/downloads/lua-${LUA_VERSION}.tar.gz" \
+ "https://www.lua.org/ftp/lua-${LUA_VERSION}.tar.gz"
+fi
+
if [ ! -f "${BASE}/downloads/uflbbl-${UFLBBL_VERSION}.tar.gz" ]; then
git clone git://git.andreasbaumann.cc/uflbbl.git "uflbbl-${UFLBBL_VERSION}"
git -C "uflbbl-${UFLBBL_VERSION}" checkout "${UFLBBL_VERSION}"