From 208f1c5acfbd8137d7ff9ed2be12bf8c12e45108 Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Wed, 18 Dec 2024 08:10:06 +0100 Subject: [PATCH 01/11] seatd & wlroots are in Slackware now, move things --- {l => _unmaintained/l}/seatd/SlackBuild | 0 {xap => _unmaintained/l}/wlroots/SlackBuild | 0 {xap => y}/HeroicGamesLauncher-bin/SlackBuild | 0 {xap => y}/itch-setup-bin/SlackBuild | 0 4 files changed, 0 insertions(+), 0 deletions(-) rename {l => _unmaintained/l}/seatd/SlackBuild (100%) rename {xap => _unmaintained/l}/wlroots/SlackBuild (100%) rename {xap => y}/HeroicGamesLauncher-bin/SlackBuild (100%) rename {xap => y}/itch-setup-bin/SlackBuild (100%) diff --git a/l/seatd/SlackBuild b/_unmaintained/l/seatd/SlackBuild similarity index 100% rename from l/seatd/SlackBuild rename to _unmaintained/l/seatd/SlackBuild diff --git a/xap/wlroots/SlackBuild b/_unmaintained/l/wlroots/SlackBuild similarity index 100% rename from xap/wlroots/SlackBuild rename to _unmaintained/l/wlroots/SlackBuild diff --git a/xap/HeroicGamesLauncher-bin/SlackBuild b/y/HeroicGamesLauncher-bin/SlackBuild similarity index 100% rename from xap/HeroicGamesLauncher-bin/SlackBuild rename to y/HeroicGamesLauncher-bin/SlackBuild diff --git a/xap/itch-setup-bin/SlackBuild b/y/itch-setup-bin/SlackBuild similarity index 100% rename from xap/itch-setup-bin/SlackBuild rename to y/itch-setup-bin/SlackBuild From c113cf740cce268dd71db10bfc8ed309ede5d6bb Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Sat, 21 Dec 2024 08:53:39 +0100 Subject: [PATCH 02/11] calibre and inkscape --- xap/calibre-bin/SlackBuild | 2 +- xap/inkscape-bin/SlackBuild | 30 +++++++++++++++--------------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/xap/calibre-bin/SlackBuild b/xap/calibre-bin/SlackBuild index 234f3a09..d116fea4 100755 --- a/xap/calibre-bin/SlackBuild +++ b/xap/calibre-bin/SlackBuild @@ -75,4 +75,4 @@ EOF cd $PKG rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la -/sbin/makepkg --linkadd y --chown n --prepend ${OUTPUT}/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txz +/sbin/makepkg --remove-tmp-rpaths --linkadd y --chown n --prepend ${OUTPUT}/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txz diff --git a/xap/inkscape-bin/SlackBuild b/xap/inkscape-bin/SlackBuild index c778e454..a5dfa3f7 100755 --- a/xap/inkscape-bin/SlackBuild +++ b/xap/inkscape-bin/SlackBuild @@ -6,7 +6,7 @@ VERSION=${VERSION:-1.4} ITEMNB=${ITEMNB:-53678} COMMITNB=${COMMITNB:-e7c3feb} -PRGNAM=$(basename $CWD) +PRGNAM=$(basename "$CWD") ARCH="AppImage" BUILD=1 @@ -18,27 +18,27 @@ OUTPUT=/tmp PREFIX=/usr # nettoyage préalable -rm -fr $PKG +rm -fr "$PKG" -mkdir -p $PKG/opt/$PRGNAM +mkdir -p "$PKG"/opt/"$PRGNAM" # mise en place -cd $PKG/opt/$PRGNAM +cd "$PKG"/opt/"$PRGNAM" || exit 1 -wget -c https://inkscape.org/gallery/item/${ITEMNB}/Inkscape-${COMMITNB}-x86_64.AppImage -O ${PRGNAM}-${VERSION}.AppImage -chmod +x ${PRGNAM}-${VERSION}.AppImage +wget -c https://inkscape.org/gallery/item/"${ITEMNB}"/Inkscape-"${COMMITNB}"-x86_64.AppImage -O "${PRGNAM}"-"${VERSION}".AppImage +chmod +x "${PRGNAM}"-"${VERSION}".AppImage -mkdir -p $PKG$PREFIX/bin/ -cd $PKG$PREFIX/bin/ -ln -s /opt/$PRGNAM/${PRGNAM}-${VERSION}.AppImage inkscape +mkdir -p "$PKG$PREFIX"/bin/ +cd "$PKG$PREFIX"/bin/ || exit 1 +ln -s /opt/"$PRGNAM"/"${PRGNAM}"-"${VERSION}".AppImage inkscape # correction -cd $PKG -chown -R root:root * +cd "$PKG" || exit 1 +chown -R root:root ./* # embaumement -mkdir -p $PKG/install -cat < $PKG/install/slack-desc +mkdir -p "$PKG"/install +cat < "$PKG"/install/slack-desc $PRGNAM: $PRGNAM (A powerful, free design tool) $PRGNAM: $PRGNAM: Whether you are an illustrator, designer, web designer @@ -47,9 +47,9 @@ $PRGNAM: Inkscape is for you! $PRGNAM: $PRGNAM: $PRGNAM: https://www.inkscape.org -$PRGNAM: +$PRGNAM: $PRGNAM: EOF # empaquetage -/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$TAG.txz +/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/"$PRGNAM"-"${VERSION//-/}"-$ARCH-$BUILD$TAG.txz From 1d76ab1295ed762f026979a7c1c09ebafb4cbbdf Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Wed, 25 Dec 2024 17:44:11 +0100 Subject: [PATCH 03/11] [luarocks] avoid detecting luajit --- d/luarocks/SlackBuild | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/d/luarocks/SlackBuild b/d/luarocks/SlackBuild index f429bc88..d8fb2c31 100755 --- a/d/luarocks/SlackBuild +++ b/d/luarocks/SlackBuild @@ -46,13 +46,14 @@ cd $PRGNAM CFLAGS=$SLCKFLAGS \ CPPFLAGS=$SLCKFLAGS \ ./configure \ - --prefix=$PREFIX + --prefix=$PREFIX \ + --lua-version=$(lua -v | rg -o "[0-9]\.[0-9]" | head -n1) # compilation make -j3 PREFIX=$PREFIX # installation -make install DESTDIR=$PKG ROCKS_TREE=$PREFIX/lib64/luarocks #LUADIR=$PREFIX/lib64/lua/5.1 +make install DESTDIR=$PKG ROCKS_TREE=$PREFIX/lib64/luarocks mkdir -p $PKG/etc/profile.d/ cat < $PKG/etc/profile.d/luarocks.sh From 3089eac34453e533842529952b37eae7a49c1eb0 Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Wed, 25 Dec 2024 22:44:04 +0100 Subject: [PATCH 04/11] [xap/birdtray] Added --- xap/birdtray/SlackBuild | 86 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100755 xap/birdtray/SlackBuild diff --git a/xap/birdtray/SlackBuild b/xap/birdtray/SlackBuild new file mode 100755 index 00000000..f327dac1 --- /dev/null +++ b/xap/birdtray/SlackBuild @@ -0,0 +1,86 @@ +#!/bin/bash + +# variables +CWD=$(pwd) + +PRGNAM=$(basename $CWD) +GITHUB_REPO=gyunaev/birdtray +VERSION=${VERSION:-latest} +ARCH=${ARCH:-$(uname -m)} +BUILD=1 + +TAG=gwh +TMP=/tmp/$TAG +PKG=$TMP/pkg-$PRGNAM +OUTPUT=/tmp + +REPOSITORY=/var/cache/SlackBuilds.gwh/$PRGNAM + +PREFIX=/usr + +# nettoyage préalable +rm -fr $PKG $TMP/$PRGNAM + +mkdir -p $PKG + +# mise en place +cd $TMP +[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY + +cd $REPOSITORY +git pull --all + +cp -R $REPOSITORY $TMP/$PRGNAM +cd $TMP/$PRGNAM + +[ "x$VERSION" == "xlatest" ] && VERSION=$(git tag --sort=-version:refname | head -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk +[ "x$VERSION" == "xtrunk" ] && VERSION="git_r$(git rev-list --count HEAD)_$(git log -1 --format=%h)" || git checkout $VERSION +git submodule update --init --recursive + +# configuration +mkdir build +cd build/ + +cmake \ + -DCMAKE_INSTALL_PREFIX=$PREFIX \ + -DCMAKE_BUILD_TYPE=Release \ + .. + +# compilation +make -j$(nproc) + +# installation +make install DESTDIR=$PKG + +# correction +cd $PKG +chown -R root:root ./* + +find $PKG -name \.git\* -exec rm -fr {} \; + +[ -d $PKG/usr/man ] && find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \; + +# Strip binaries +cd $PKG +find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null +find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null + +# embaumement +mkdir -p $PKG/install +cat < $PKG/install/slack-desc +$PRGNAM: $PRGNAM (Independent tray icon for Thunderbird) +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: https://github.com/${GITHUB_REPO} +$PRGNAM: +EOF + +# empaquetage +rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la +/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$TAG.txz From 3bd934e85bd4dfe6ce9a572bb355f02455b81ec0 Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Fri, 27 Dec 2024 15:45:31 +0100 Subject: [PATCH 05/11] better .desktop --- y/HeroicGamesLauncher-bin/SlackBuild | 4 ++-- y/itch-setup-bin/SlackBuild | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/y/HeroicGamesLauncher-bin/SlackBuild b/y/HeroicGamesLauncher-bin/SlackBuild index 20065b63..ec1955fb 100755 --- a/y/HeroicGamesLauncher-bin/SlackBuild +++ b/y/HeroicGamesLauncher-bin/SlackBuild @@ -8,7 +8,7 @@ OUTPUT=${OUTPUT:-/tmp} PRGNAM=$(basename "$CWD") ARCH=${ARCH:-$(uname -m | grep -q 64 && echo "x86_64" || echo "i386")} VERSION=${VERSION:-$(curl -s https://api.github.com/repos/Heroic-Games-Launcher/HeroicGamesLauncher/tags | grep name | head -n1 | grep -o "v[0-9.]*" | tr -d v)} -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} TAG=${TAG:-gwh} rm -rf "$PKG" @@ -33,7 +33,7 @@ mkdir -p "$PKG"/usr/share/applications/ cat < "$PKG"/usr/share/applications/"$PRGNAM".desktop [Desktop Entry] Type=Application -Name=$PRGNAM +Name=Heroic-Games-Launcher TryExec=heroic Exec=heroic %U Icon=heroic diff --git a/y/itch-setup-bin/SlackBuild b/y/itch-setup-bin/SlackBuild index d5972483..414a0416 100755 --- a/y/itch-setup-bin/SlackBuild +++ b/y/itch-setup-bin/SlackBuild @@ -8,7 +8,7 @@ OUTPUT=${OUTPUT:-/tmp} PRGNAM=$(basename "$CWD") ARCH=${ARCH:-$(uname -m | grep -q 64 && echo "x86_64" || echo "i386")} VERSION=${VERSION:-$(curl -s https://api.github.com/repos/itchio/itch-setup/tags | grep name | head -n1 | grep -o "v[0-9.]*" | tr -d v)} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-gwh} rm -rf "$PKG" @@ -30,7 +30,7 @@ mkdir -p "$PKG"/usr/share/applications/ cat < "$PKG"/usr/share/applications/itch.desktop [Desktop Entry] Type=Application -Name=itch +Name=Itch.io launcher TryExec=itch Exec=itch %U Icon=itch From d88a4317e6ba242b1b251d7dab5897313f391b87 Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Fri, 27 Dec 2024 16:49:13 +0100 Subject: [PATCH 06/11] duf and dust --- ap/duf/SlackBuild | 73 ++++++++++++++++++++++++ {_unmaintained/ap => ap}/dust/SlackBuild | 0 2 files changed, 73 insertions(+) create mode 100755 ap/duf/SlackBuild rename {_unmaintained/ap => ap}/dust/SlackBuild (100%) diff --git a/ap/duf/SlackBuild b/ap/duf/SlackBuild new file mode 100755 index 00000000..2cc8e11d --- /dev/null +++ b/ap/duf/SlackBuild @@ -0,0 +1,73 @@ +#!/bin/bash + +# variables +CWD=$(pwd) + +PRGNAM=$(basename "$CWD") +GITHUB_REPO=muesli/duf +VERSION=${VERSION:-latest} +ARCH=${ARCH:-noarch} +BUILD=1 + +TAG=gwh +TMP=/tmp/$TAG +PKG=$TMP/pkg-$PRGNAM +OUTPUT=/tmp + +REPOSITORY=/var/cache/SlackBuilds.gwh/$PRGNAM + +PREFIX=/usr + +# nettoyage préalable +rm -fr "$PKG" "${TMP:?}/$PRGNAM" + +mkdir -p "$PKG" + +# mise en place +cd $TMP || exit 1 +[ ! -e "$REPOSITORY" ] && git clone https://github.com/${GITHUB_REPO}.git "$REPOSITORY" +cd $REPOSITORY +git pull --all + +cp -R "$REPOSITORY" "$TMP/$PRGNAM" +cd "$TMP/$PRGNAM" || exit 1 +[ "$VERSION" == "latest" ] && VERSION=$(git tag --sort=-version:refname | head -n1) +[ "$VERSION" == "" ] && VERSION=trunk +[ "$VERSION" == "trunk" ] && VERSION="git_r$(git rev-list --count HEAD)_$(git log -1 --format=%h)" || git checkout "$VERSION" + +go build + +# installation +mkdir -p "$PKG$PREFIX"/bin/ +cp duf "$PKG$PREFIX"/bin/ + +mkdir -p "$PKG$PREFIX"/man/man1/ +cp duf.1 "$PKG$PREFIX"/man/man1/ +gzip -9 "$PKG$PREFIX"/man/man1/duf.1 + +mkdir -p "$PKG$PREFIX/doc/$PRGNAM" +cp -a LICENSE README.md duf.png "$PKG$PREFIX/doc/$PRGNAM" + +# correction +cd "$PKG" || exit 1 +chown -R root:root ./* + +[ -d "$PKG"/usr/man ] && find "$PKG"/usr/man -type f -name "*.?" -exec gzip -9f {} \; + +# embaumement +mkdir -p "$PKG/install" +cat < "$PKG"/install/slack-desc +$PRGNAM: $PRGNAM (a better df) +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: https://github.com/${GITHUB_REPO} +EOF + +# empaquetage +/sbin/makepkg --linkadd y --chown n --prepend "$OUTPUT/$PRGNAM-${VERSION//-/}-$ARCH-$BUILD$TAG.txz" diff --git a/_unmaintained/ap/dust/SlackBuild b/ap/dust/SlackBuild similarity index 100% rename from _unmaintained/ap/dust/SlackBuild rename to ap/dust/SlackBuild From 85e4ccd188d3f981cd83218c0dcc95989e890786 Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Fri, 27 Dec 2024 17:21:17 +0100 Subject: [PATCH 07/11] save those --- {_unmaintained/ap => ap}/btm/SlackBuild | 0 {_unmaintained/ap => ap}/dua/SlackBuild | 0 {_unmaintained/ap => ap}/fish/SlackBuild | 0 {_unmaintained/ap => ap}/procs/SlackBuild | 0 4 files changed, 0 insertions(+), 0 deletions(-) rename {_unmaintained/ap => ap}/btm/SlackBuild (100%) rename {_unmaintained/ap => ap}/dua/SlackBuild (100%) rename {_unmaintained/ap => ap}/fish/SlackBuild (100%) rename {_unmaintained/ap => ap}/procs/SlackBuild (100%) diff --git a/_unmaintained/ap/btm/SlackBuild b/ap/btm/SlackBuild similarity index 100% rename from _unmaintained/ap/btm/SlackBuild rename to ap/btm/SlackBuild diff --git a/_unmaintained/ap/dua/SlackBuild b/ap/dua/SlackBuild similarity index 100% rename from _unmaintained/ap/dua/SlackBuild rename to ap/dua/SlackBuild diff --git a/_unmaintained/ap/fish/SlackBuild b/ap/fish/SlackBuild similarity index 100% rename from _unmaintained/ap/fish/SlackBuild rename to ap/fish/SlackBuild diff --git a/_unmaintained/ap/procs/SlackBuild b/ap/procs/SlackBuild similarity index 100% rename from _unmaintained/ap/procs/SlackBuild rename to ap/procs/SlackBuild From fc942effd75bde317dff7ac7c73ab604ebbb149f Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Fri, 27 Dec 2024 19:40:13 +0100 Subject: [PATCH 08/11] Added --- xap/ghostty/SlackBuild | 77 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100755 xap/ghostty/SlackBuild diff --git a/xap/ghostty/SlackBuild b/xap/ghostty/SlackBuild new file mode 100755 index 00000000..e15cbbf4 --- /dev/null +++ b/xap/ghostty/SlackBuild @@ -0,0 +1,77 @@ +#!/bin/bash + +# variables +CWD=$(pwd) + +PRGNAM=$(basename "$CWD") +GITHUB_REPO=ghostty-org/ghostty +VERSION=${VERSION:-latest} +ARCH=${ARCH:-noarch} +BUILD=1 + +TAG=gwh +TMP=/tmp/$TAG +PKG=$TMP/pkg-$PRGNAM +OUTPUT=/tmp + +REPOSITORY=/var/cache/SlackBuilds.gwh/$PRGNAM + +PREFIX=/usr + +# nettoyage préalable +rm -fr "$PKG" "${TMP:?}/$PRGNAM" + +mkdir -p "$PKG" + +# mise en place +cd $TMP || exit 1 +[ ! -e "$REPOSITORY" ] && git clone https://github.com/${GITHUB_REPO}.git "$REPOSITORY" +cd $REPOSITORY +git pull --all + +cp -R "$REPOSITORY" "$TMP/$PRGNAM" +cd "$TMP/$PRGNAM" || exit 1 +[ "$VERSION" == "latest" ] && VERSION=$(git tag --sort=-version:refname | head -n1) +[ "$VERSION" == "" ] && VERSION=trunk +[ "$VERSION" == "trunk" ] && VERSION="git_r$(git rev-list --count HEAD)_$(git log -1 --format=%h)" || git checkout "$VERSION" + +DESTDIR=$PKG \ +zig build \ + --prefix /usr \ + -Doptimize=ReleaseFast \ + -Dcpu=baseline + +# # installation +# mkdir -p "$PKG$PREFIX"/bin/ +# cp duf "$PKG$PREFIX"/bin/ + +# mkdir -p "$PKG$PREFIX"/man/man1/ +# cp duf.1 "$PKG$PREFIX"/man/man1/ +# gzip -9 "$PKG$PREFIX"/man/man1/duf.1 + +# mkdir -p "$PKG$PREFIX/doc/$PRGNAM" +# cp -a LICENSE README.md duf.png "$PKG$PREFIX/doc/$PRGNAM" + +# correction +cd "$PKG" || exit 1 +chown -R root:root ./* + +[ -d "$PKG"/usr/man ] && find "$PKG"/usr/man -type f -name "*.?" -exec gzip -9f {} \; + +# embaumement +mkdir -p "$PKG/install" +cat < "$PKG"/install/slack-desc +$PRGNAM: $PRGNAM () +$PRGNAM: +$PRGNAM: 👻 Ghostty is a fast, feature-rich, and cross-platform +$PRGNAM: terminal emulator that uses platform-native UI and GPU +$PRGNAM: acceleration. +$PRGNAM: REQUIRES: libadwaita +$PRGNAM: +$PRGNAM: +$PRGNAM: https://ghostty.org +$PRGNAM: https://github.com/${GITHUB_REPO} +EOF + +# empaquetage +/sbin/makepkg --linkadd y --chown n --prepend "$OUTPUT/$PRGNAM-${VERSION//-/}-$ARCH-$BUILD$TAG.txz" From db7588ca23c33b521e18dca642283342740ae6b5 Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Fri, 27 Dec 2024 21:04:33 +0100 Subject: [PATCH 09/11] cleaning --- xap/ghostty/SlackBuild | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/xap/ghostty/SlackBuild b/xap/ghostty/SlackBuild index e15cbbf4..9a3d2f5c 100755 --- a/xap/ghostty/SlackBuild +++ b/xap/ghostty/SlackBuild @@ -36,21 +36,10 @@ cd "$TMP/$PRGNAM" || exit 1 [ "$VERSION" == "trunk" ] && VERSION="git_r$(git rev-list --count HEAD)_$(git log -1 --format=%h)" || git checkout "$VERSION" DESTDIR=$PKG \ -zig build \ - --prefix /usr \ - -Doptimize=ReleaseFast \ - -Dcpu=baseline - -# # installation -# mkdir -p "$PKG$PREFIX"/bin/ -# cp duf "$PKG$PREFIX"/bin/ - -# mkdir -p "$PKG$PREFIX"/man/man1/ -# cp duf.1 "$PKG$PREFIX"/man/man1/ -# gzip -9 "$PKG$PREFIX"/man/man1/duf.1 - -# mkdir -p "$PKG$PREFIX/doc/$PRGNAM" -# cp -a LICENSE README.md duf.png "$PKG$PREFIX/doc/$PRGNAM" + zig build \ + --prefix /usr \ + -Doptimize=ReleaseFast \ + -Dcpu=baseline # correction cd "$PKG" || exit 1 From 8aae0953c3eb96005dc77dc9cd60d6ec7c1f69ee Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Sun, 29 Dec 2024 14:40:08 +0100 Subject: [PATCH 10/11] Added notcurses Signed-off-by: Gwenhael Le Moine --- l/notcurses/SlackBuild | 86 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100755 l/notcurses/SlackBuild diff --git a/l/notcurses/SlackBuild b/l/notcurses/SlackBuild new file mode 100755 index 00000000..54e2ff5c --- /dev/null +++ b/l/notcurses/SlackBuild @@ -0,0 +1,86 @@ +#!/bin/bash + +# variables +CWD=$(pwd) + +PRGNAM=$(basename $CWD) +GITHUB_REPO=dankamongmen/notcurses +VERSION=${VERSION:-latest} +ARCH=${ARCH:-$(uname -m)} +BUILD=1 + +TAG=gwh +TMP=/tmp/$TAG +PKG=$TMP/pkg-$PRGNAM +OUTPUT=/tmp + +REPOSITORY=/var/cache/SlackBuilds.gwh/$PRGNAM + +PREFIX=/usr + +SLCKFLAGS=" -O " + +# nettoyage préalable +rm -fr $PKG $TMP/$PRGNAM + +mkdir -p $PKG + +# mise en place +cd $TMP +[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY + +cp -R $REPOSITORY $TMP/$PRGNAM +cd $TMP/$PRGNAM +[ "x$VERSION" == "xlatest" ] && VERSION=$(git tag --sort=-version:refname | head -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk +[ "x$VERSION" == "xtrunk" ] && VERSION="git_r$(git rev-list --count HEAD)_$(git log -1 --format=%h)" || git checkout $VERSION + +# configuration +cmake \ + -DCMAKE_INSTALL_PREFIX=$PREFIX \ + -DCMAKE_INSTALL_DATADIR=$PREFIX \ + -DCMAKE_INSTALL_DOCDIR=$PREFIX/doc/$PRGNAM \ + -DUSE_MULTIMEDIA=none \ + . + +# compilation +make -j$(nproc) + +# installation +make install DESTDIR=$PKG + +# mv $PKG$PREFIX/share/man/ $PKG$PREFIX/ +# mkdir -p $PKG$PREFIX/doc/$PRGNAM +# cp -R COPYRIGHT *.md $PKG$PREFIX/doc/$PRGNAM + +# correction +cd $PKG +chown -R root:root * + +find $PKG -name \.git\* -exec rm -fr {} \; + +[ -d $PKG${PREFIX}/man ] && find $PKG${PREFIX}/man -type f -name "*.?" -exec gzip -9f {} \; + +# # Strip binaries +# cd $PKG +# find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null +# find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null + +# embaumement +mkdir -p $PKG/install +cat < $PKG/install/slack-desc +$PRGNAM: $PRGNAM (blingful character graphics/TUI library) +$PRGNAM: +$PRGNAM: Definitly not curses +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: https://github.com/${GITHUB_REPO} +EOF + +# empaquetage +rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la +/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$TAG.txz From 1c2984321780ebb4d24ff38141b183d100fa1197 Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Sun, 5 Jan 2025 14:12:18 +0100 Subject: [PATCH 11/11] add janet --- d/janet-lang/SlackBuild | 79 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100755 d/janet-lang/SlackBuild diff --git a/d/janet-lang/SlackBuild b/d/janet-lang/SlackBuild new file mode 100755 index 00000000..14234cde --- /dev/null +++ b/d/janet-lang/SlackBuild @@ -0,0 +1,79 @@ +#!/bin/bash + +# variables +CWD=$(pwd) + +PRGNAM=$(basename $CWD) +GITHUB_REPO=janet-lang/janet +VERSION=${VERSION:-latest} +ARCH=${ARCH:-$(uname -m)} +BUILD=1 + +TAG=gwh +TMP=/tmp/$TAG +PKG=$TMP/pkg-$PRGNAM +OUTPUT=/tmp + +REPOSITORY=/var/cache/SlackBuilds.gwh/$PRGNAM + +PREFIX=/usr + +SLCKFLAGS=" -O " + +# nettoyage préalable +rm -fr $PKG $TMP/$PRGNAM + +mkdir -p $PKG + +# mise en place +cd $TMP +[ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY +cd $REPOSITORY +git pull --all + +cp -R $REPOSITORY $TMP/$PRGNAM +cd $TMP/$PRGNAM +[ "x$VERSION" == "xlatest" ] && VERSION=$(git tag --sort=-version:refname | head -n1) +[ "x$VERSION" == "x" ] && VERSION=trunk +[ "x$VERSION" == "xdevelop" ] && git checkout develop && VERSION=trunk +[ "x$VERSION" == "xtrunk" ] && VERSION="git_r$(git rev-list --count HEAD)_$(git log -1 --format=%h)" || git checkout $VERSION + +# sed -i 's|git@github.com:|https://github.com/|g' $(grep -l git@ .*) + +# installation +make install DESTDIR=$PKG PREFIX=$PREFIX LIBDIR=$PREFIX/lib$(uname -m | grep -o 64) JANET_MANPATH=$PREFIX/man/man1 + +mkdir -p $PKG$PREFIX/doc/$PRGNAM +cp -R test/ doc/ *.md LICENSE $PKG$PREFIX/doc/$PRGNAM + +# correction +cd $PKG +chown -R root:root ./* + +find $PKG -name \.git\* -exec rm -fr {} \; + +[ -d $PKG/usr/man ] && find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \; + +# # Strip binaries +# cd $PKG +# find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null +# find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null + +# embaumement +mkdir -p $PKG/install +cat < $PKG/install/slack-desc +$PRGNAM: $PRGNAM ( A dynamic language and bytecode vm ) +$PRGNAM: +$PRGNAM: Janet is a programming language for system scripting, +$PRGNAM: expressive automation, and extending programs written +$PRGNAM: in C or C++ with user scripting capabilities. +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: https://github.com/${GITHUB_REPO} +$PRGNAM: +EOF + +# empaquetage +rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la +/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$TAG.txz