Skip to content

Commit

Permalink
add links-2.29
Browse files Browse the repository at this point in the history
  • Loading branch information
ahgamut committed Dec 5, 2023
1 parent d71d2c6 commit 23d70e6
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/scripts/build/web
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@ mkdir -p $RESULTS/bin

# the zip folder
cd "$CONFIGDIR"
mkdir -p usr/share
mkdir -p ./usr/share/ssl/root
cp -r /zip/usr/share/terminfo ./usr/share
cp /etc/ssl/certs/*.* ./usr/share/ssl/root/ || true
mkdir -p ./ssl/certs
cp -r /etc/ssl/certs ./ssl
ls -al /zip


Expand All @@ -52,12 +56,19 @@ ls -al ./
apelinkpls $RESULTS/bin/wget.com $COSMOS_X86/bin/wget $COSMOS_AARCH64/bin/wget
cd "$CONFIGDIR"
cp $BASELOC/web/wget*/wgetrc ./
mkdir -p ./usr/share/ssl/root
cp /etc/ssl/certs/*.* ./usr/share/ssl/root/ || true
zip $RESULTS/bin/wget.com wgetrc
zip -qr $RESULTS/bin/wget.com usr/
cd "$BASELOC"

# links
apelinkpls $RESULTS/bin/links.com $COSMOS_X86/bin/links $COSMOS_AARCH64/bin/links
cd "$CONFIGDIR"
zip -qr $RESULTS/bin/links.com\
usr/share/terminfo\
ssl/
cd "$BASELOC"


# curl
apelinkpls $RESULTS/bin/curl.com $COSMOS_X86/bin/curl $COSMOS_AARCH64/bin/curl
cd "$CONFIGDIR"
Expand Down
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,13 @@ web/git-2.42.0.built.$(ARCH):\
web/curl-8.4.0.built.$(ARCH)\
lib/libexpat-2.5.0.built.$(ARCH)

web/links-2.29.built.$(ARCH):\
lib/ncurses-6.4.built.$(ARCH)\
lib/openssl-1.1.1u.built.$(ARCH)\
lib/libuuid-1.0.3.built.$(ARCH)\
compress/xz-5.4.3.built.$(ARCH)\
compress/brotli-1.1.0.built.$(ARCH)

web/postgres-15.5.built.$(ARCH):\
lib/openssl-1.1.1u.built.$(ARCH)\
lib/libuuid-1.0.3.built.$(ARCH)\
Expand All @@ -111,6 +118,7 @@ web/postgres-15.5.built.$(ARCH):\
lib/libexpat-2.5.0.built.$(ARCH)

web: web/wget-1.21.built.$(ARCH)\
web/links-2.29.built.$(ARCH)\
web/curl-8.4.0.built.$(ARCH)\
web/rsync-3.2.7.built.$(ARCH)\
web/git-2.42.0.built.$(ARCH)
Expand Down
49 changes: 49 additions & 0 deletions web/links-2.29/superconfigure
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
#!/usr/bin/env bash
set -e

# check for cosmo dirs
if [ -z ${COSMO+x} ]; then
echo "could not find COSMO source directory!";
exit 1
fi

if [ -z ${COSMOS+x} ]; then
echo "could not find COSMOS install directory!";
exit 1
fi

if [[ -f sources.tar.gz ]]; then
# we already downloaded it
cd links*/
make V=0 -s -i clean || true
make V=0 -s -i distclean || true
cd ..
else
# download the source code
wget -q http://links.twibright.com/download/links-2.29.tar.gz -O sources.tar.gz
tar -xf sources.tar.gz

# apply patches if any
# patch -p0 -i minimal.diff
fi

# go into the source folder, configure
cd links*/
# cp $COSMOS/common.cache ./config.cache
./configure --prefix="$COSMOS"\
--with-ssl="$COSMOS/ssl"\
--datadir=/zip/usr/share --sysconfdir=/zip/usr/share\
--without-openmp --without-svgalib --without-x\
--without-fb --without-directfb --without-pmshell\
--without-windows --without-atheos --without-haiku\
--without-grx --without-freetype --without-libjpeg\
--without-libtiff --without-librsvg --without-libwebp\
--without-libavif --disable-graphics --without-gpm\
CFLAGS="-Os"


# run make and/or make install
make V=0 -s -j$MAXPROC
make install V=0 -s -j$MAXPROC

echo "DONE."

0 comments on commit 23d70e6

Please sign in to comment.