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/_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/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 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 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 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 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 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 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/ghostty/SlackBuild b/xap/ghostty/SlackBuild new file mode 100755 index 00000000..9a3d2f5c --- /dev/null +++ b/xap/ghostty/SlackBuild @@ -0,0 +1,66 @@ +#!/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 + +# 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" 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 diff --git a/xap/HeroicGamesLauncher-bin/SlackBuild b/y/HeroicGamesLauncher-bin/SlackBuild similarity index 97% rename from xap/HeroicGamesLauncher-bin/SlackBuild rename to y/HeroicGamesLauncher-bin/SlackBuild index 20065b63..ec1955fb 100755 --- a/xap/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/xap/itch-setup-bin/SlackBuild b/y/itch-setup-bin/SlackBuild similarity index 98% rename from xap/itch-setup-bin/SlackBuild rename to y/itch-setup-bin/SlackBuild index d5972483..414a0416 100755 --- a/xap/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