diff --git a/wayland/swayr/SlackBuild b/wayland/swayr/SlackBuild new file mode 100755 index 00000000..d47fc21d --- /dev/null +++ b/wayland/swayr/SlackBuild @@ -0,0 +1,98 @@ +#!/bin/bash + +# variables +VERSION=${VERSION:-"trunk"} +BUILD=${BUILD:-1} + +TAG=gwh +TMP=/tmp/$TAG +CWD=$(pwd) + +PRGNAM=$(basename $CWD) +PKG=$TMP/pkg-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +ARCH=${ARCH:-$(uname -m)} + +REPOSITORY=${REPOSITORY:-/home/installs/SlackBuilds/repositories/$PRGNAM} +PREFIX=${PREFIX:-/usr} + +# nettoyage préalable +rm -fr $PKG $TMP/$PRGNAM + +mkdir -p $PKG + +# mise en place +cd $TMP +[ ! -e $REPOSITORY ] && git clone https://git.sr.ht/~tsdh/swayr $REPOSITORY +cd $REPOSITORY +git pull --all + +cp -R $REPOSITORY $TMP/ +cd $TMP/$PRGNAM +[ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION + +cargo build --release + +mkdir -p $PKG$PREFIX/bin +find target/release/ -type f -executable -maxdepth 1 -exec cp {} $PKG$PREFIX/bin/ \; +chmod 755 $PKG$PREFIX/bin/* + +# mkdir -p $PKG$PREFIX/man/man1 +# cp extra/alacritty.man $PKG$PREFIX/man/man1/alacritty.1 +# gzip -9 $PKG$PREFIX/man/man1/alacritty.1 + +# mkdir -p $PKG$PREFIX/info +# cp extra/alacritty.info $PKG$PREFIX/info/ +# gzip -9 $PKG$PREFIX/info/alacritty.info + +# mkdir -p $PKG$PREFIX/share/applications +# cp extra/linux/Alacritty.desktop $PKG$PREFIX/share/applications/ + +# mkdir -p $PKG$PREFIX/share/appdata +# cp extra/linux/io.alacritty.Alacritty.appdata.xml $PKG$PREFIX/share/appdata/ + +# mkdir -p $PKG/usr/share/bash-completion/completions +# cp extra/completions/alacritty.bash $PKG/usr/share/bash-completion/completions/alacritty + +# mkdir -p $PKG/usr/share/zsh/site-functions +# cp extra/completions/_alacritty $PKG/usr/share/zsh/site-functions/ + +# move doc/ to the appropriate location +mkdir -p $PKG$PREFIX/doc/$PRGNAM +cp -a LICENSE *.md $PKG$PREFIX/doc/$PRGNAM + +# correction +cd $PKG +chown -R root:root * + +find $PKG$PREFIX/man -type f -not -name \*.gz -exec gzip -9 {} \; + +# embaumement +mkdir -p $PKG/install + +cat < $PKG/install/slack-desc +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':'. + + |-----handy-ruler------------------------------------------------------| +$PRGNAM: $PRGNAM (An urgent-first/LRU window switcher for sway) +$PRGNAM: +$PRGNAM: Swayr consists of a demon, and a client. The demon swayrd records +$PRGNAM: window/workspace creations, deletions, and focus changes using sway's +$PRGNAM: JSON IPC interface. The client swayr offers subcommands, +$PRGNAM: see swayr --help, and sends them to the demon which executes them. +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: https://git.sr.ht/~tsdh/swayr +$PRGNAM: +EOF + +# empaquetage +rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz diff --git a/wayland/taiwins/SlackBuild b/wayland/taiwins/SlackBuild new file mode 100755 index 00000000..d5264f03 --- /dev/null +++ b/wayland/taiwins/SlackBuild @@ -0,0 +1,117 @@ +#!/bin/bash + +# variables +VERSION=${VERSION:-"trunk"} +BUILD=1 + +TAG=gwh +OUTPUT=/tmp +TMP=/tmp/$TAG +CWD=$(pwd) + +PRGNAM=$(basename $CWD) +PKG=$TMP/pkg-$PRGNAM + +ARCH=$(uname -m) + +REPOSITORY=/home/installs/SlackBuilds/repositories/$PRGNAM +PREFIX=/usr + +# nettoyage préalable +rm -fr $PKG $TMP/$PRGNAM + +mkdir -p $PKG + +# mise en place +[ ! -e $REPOSITORY ] && git clone https://github.com/taiwins/taiwins --recursive $REPOSITORY +cd $REPOSITORY +git pull --all +git submodule update + +cp -R $REPOSITORY $TMP/ +cd $TMP/$PRGNAM/ + +[ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION + +meson setup \ + --prefix /usr \ + --mandir /usr/man/ \ + build/ +ninja -C build/ +cd build/ +meson install --destdir=$PKG +cd ../ + +cat < $PKG$PREFIX/bin/start_taiwins.sh +#!/bin/bash + +export QT_QPA_PLATFORMTHEME=qt5ct +export QT_QPA_PLATFORM=wayland-egl +export QT_WAYLAND_FORCE_DPI=physical +export QT_WAYLAND_DISABLE_WINDOWDECORATION=1 + +export SAL_USE_VCLPLUGIN=gtk3 + +export MOZ_ENABLE_WAYLAND=1 +export MOZ_DBUS_REMOTE=1 + +export _JAVA_AWT_WM_NONREPARENTING=1 + +# export GDK_BACKEND=wayland +export CLUTTER_BACKEND=gdk + +export SDL_VIDEODRIVER=wayland + +export XDG_CURRENT_DESKTOP=taiwins + +[ -e $HOME/.profile ] && . $HOME/.profile + +exec /usr/bin/taiwins -s /usr/bin/taiwins-shell -c /usr/bin/taiwins-console +EOF +chmod +x $PKG$PREFIX/bin/start_taiwins.sh + +mkdir -p $PKG/usr/share/wayland-sessions/ +cat < $PKG/usr/share/wayland-sessions/taiwins.desktop +[Desktop Entry] +Name=Taiwins +Comment=a modern wayland compositor +Exec=/usr/bin/start_taiwins.sh +Type=Application +EOF + +mkdir -p $PKG$PREFIX/doc/$PRGNAM +cp -a docs/ LICENSE *.md $PKG$PREFIX/doc/$PRGNAM/ + +# correction +cd $PKG +chown -R root:root * +find $PKG$PREFIX/man -name "*.?" -type f -exec gzip -9 {} \; + +# embaumement +mkdir -p $PKG/install + +cat < $PKG/install/slack-desc +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':'. + + |-----handy-ruler------------------------------------------------------| +$PRGNAM: $PRGNAM (taiwins, a modern wayland compositor) +$PRGNAM: +$PRGNAM: Taiwins is a dynamic wayland window manager, supports both tiling +$PRGNAM: and floating layout. It is designed to be modern and modular. It is +$PRGNAM: extensible through lua script and it has built-in shell and widgets +$PRGNAM: implementation through nuklear GUI. It also supports popular tiling +$PRGNAM: window manager features like gapping. +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: https://github.com/taiwins/taiwins +EOF + +# empaquetage +rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz diff --git a/wayland/wofi/SlackBuild b/wayland/wofi/SlackBuild new file mode 100755 index 00000000..3e9f08e4 --- /dev/null +++ b/wayland/wofi/SlackBuild @@ -0,0 +1,76 @@ +#!/bin/bash + +# variables +VERSION=${VERSION:-"trunk"} +BUILD=1 + +TAG=gwh +OUTPUT=/tmp +TMP=/tmp/$TAG +CWD=$(pwd) + +PRGNAM=$(basename $CWD) +PKG=$TMP/pkg-$PRGNAM + +ARCH=$(uname -m) + +REPOSITORY=/home/installs/SlackBuilds/repositories/$PRGNAM +PREFIX=/usr + +# nettoyage préalable +rm -fr $PKG $TMP/$PRGNAM + +mkdir -p $PKG + +# mise en place +[ ! -e $REPOSITORY ] && hg clone https://hg.sr.ht/~scoopta/wofi $REPOSITORY +cd $REPOSITORY +hg pull + +cp -R $REPOSITORY $TMP/ +cd $TMP/$PRGNAM/ + +[ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION + +meson setup --prefix /usr --mandir /usr/man/ build/ +ninja -C build/ +cd build/ +meson install --destdir=$PKG +cd ../ + +mkdir -p $PKG$PREFIX/doc/$PRGNAM +cp LICENSE *.md $PKG$PREFIX/doc/$PRGNAM/ + +# correction +cd $PKG +chown -R root:root * +find $PKG$PREFIX/man -name "*.?" -type f -exec gzip -9 {} \; + +# embaumement +mkdir -p $PKG/install + +cat < $PKG/install/slack-desc +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':'. + + |-----handy-ruler------------------------------------------------------| +$PRGNAM: $PRGNAM (launcher/menu for Wayland compositors) +$PRGNAM: +$PRGNAM: Wofi is a launcher/menu program for wlroots based wayland +$PRGNAM: compositors such as sway +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: https://hg.sr.ht/~scoopta/wofi +EOF + +# empaquetage +rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz