diff --git a/UNUSED/d/stack/SlackBuild b/d/stack/SlackBuild similarity index 100% rename from UNUSED/d/stack/SlackBuild rename to d/stack/SlackBuild diff --git a/e/emacs/SlackBuild b/e/emacs/SlackBuild index 31b106e0..0fcf40e1 100755 --- a/e/emacs/SlackBuild +++ b/e/emacs/SlackBuild @@ -125,15 +125,25 @@ $SRCDIR/configure \ --without-gconf \ --without-gsettings \ --with-modules \ - --with-x \ - --with-x-toolkit=${X_TOOLKIT:-gtk3} \ - --without-toolkit-scroll-bars \ + --with-dbus \ + --with-gif \ + --with-jpeg \ + --with-png \ + --with-rsvg \ + --with-tiff \ + --with-xft \ + --with-xpm \ + --with-gpm=no \ + --with-pgtk \ --enable-link-time-optimization \ --with-compress-install \ --without-gconf \ --with-gameuser=":games" \ --disable-libsystemd \ --build=${ARCH}-slackware-linux || exit 1 + # --with-x \ + # --with-x-toolkit=${X_TOOLKIT:-gtk3} \ + # --without-toolkit-scroll-bars \ make $NUMJOBS || make || exit 1 make install DESTDIR=$PKG || exit 1 diff --git a/l/basu/SlackBuild b/l/basu/SlackBuild new file mode 100755 index 00000000..13a77b41 --- /dev/null +++ b/l/basu/SlackBuild @@ -0,0 +1,75 @@ +#!/bin/sh + +# variables +VERSION=master_$(date +"%Y.%m.%d_%H.%M") +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/emersion/basu $REPOSITORY +( cd $REPOSITORY && git pull ) +VERSION="git_$( cd $REPOSITORY && git log -1 --format=%h_%ad --date=format:%Y.%m.%d )" + +cp -R $REPOSITORY $TMP/ + +cd $TMP/$PRGNAM/ +meson build/ +meson configure --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 (The sd-bus library, extracted from systemd.) +$PRGNAM: +$PRGNAM: Some projects rely on the sd-bus library for DBus support. However +$PRGNAM: not all systems have systemd or elogind installed. This library +$PRGNAM: provides just sd-bus (and the busctl utility). +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: https://github.com/emersion/basu +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/l/fmt/SlackBuild b/l/fmt/SlackBuild new file mode 100755 index 00000000..a3e122dc --- /dev/null +++ b/l/fmt/SlackBuild @@ -0,0 +1,80 @@ +#!/bin/sh + +# variables +CWD=$(pwd) + +PRGNAM=$(basename $CWD) +VERSION=${VERSION:-$(date +"%Y.%m.%d_%H.%M")} +ARCH=${ARCH:-$(uname -m)} +BUILD=1 + +TAG=gwh +TMP=/tmp/$TAG +PKG=$TMP/pkg-$PRGNAM +OUTPUT=/tmp + +REPOSITORY=/home/installs/SlackBuilds/repositories/$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/fmtlib/fmt.git $REPOSITORY + +VERSION="git_$( cd $REPOSITORY && git log -1 --format=%h_%ad --date=format:%Y.%m.%d )" +cp -R $REPOSITORY $TMP/$PRGNAM + +cd $TMP/$PRGNAM + +# configuration +cmake \ + -DCMAKE_INSTALL_PREFIX=$PREFIX \ + . + +# compilation +make -j$(nproc) + +# installation +make install DESTDIR=$PKG + +mkdir -p $PKG$PREFIX/doc/$PRGNAM +cp -R *.rst *.md $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 modern formatting library ) +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: https://github.com/fmtlib/fmt +EOF + +# empaquetage +rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$TAG.txz diff --git a/l/hinnant-date/SlackBuild b/l/hinnant-date/SlackBuild new file mode 100755 index 00000000..6bb9479f --- /dev/null +++ b/l/hinnant-date/SlackBuild @@ -0,0 +1,82 @@ +#!/bin/sh + +# variables +CWD=$(pwd) + +PRGNAM=$(basename $CWD) +VERSION=${VERSION:-$(date +"%Y.%m.%d_%H.%M")} +ARCH=${ARCH:-$(uname -m)} +BUILD=1 + +TAG=gwh +TMP=/tmp/$TAG +PKG=$TMP/pkg-$PRGNAM +OUTPUT=/tmp + +REPOSITORY=/home/installs/SlackBuilds/repositories/$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/HowardHinnant/date.git $REPOSITORY + +VERSION="git_$( cd $REPOSITORY && git log -1 --format=%h_%ad --date=format:%Y.%m.%d )" +cp -R $REPOSITORY $TMP/$PRGNAM + +cd $TMP/$PRGNAM + +# configuration +cmake \ + -DCMAKE_INSTALL_PREFIX=$PREFIX \ + -DENABLE_DATE_TESTING=ON \ + -DBUILD_TZ_LIB=ON \ + . + +# compilation +make -j$(nproc) + +# installation +make install DESTDIR=$PKG + +mkdir -p $PKG$PREFIX/doc/$PRGNAM +cp -R *.txt *.md $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 date and time library based on the C++11/14/17 header) +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: https://howardhinnant.github.io/date/date.html +EOF + +# empaquetage +rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$TAG.txz diff --git a/l/spdlog/SlackBuild b/l/spdlog/SlackBuild new file mode 100755 index 00000000..1b408bfc --- /dev/null +++ b/l/spdlog/SlackBuild @@ -0,0 +1,80 @@ +#!/bin/sh + +# variables +CWD=$(pwd) + +PRGNAM=$(basename $CWD) +VERSION=${VERSION:-$(date +"%Y.%m.%d_%H.%M")} +ARCH=${ARCH:-$(uname -m)} +BUILD=1 + +TAG=gwh +TMP=/tmp/$TAG +PKG=$TMP/pkg-$PRGNAM +OUTPUT=/tmp + +REPOSITORY=/home/installs/SlackBuilds/repositories/$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/gabime/spdlog.git $REPOSITORY + +VERSION="git_$( cd $REPOSITORY && git log -1 --format=%h_%ad --date=format:%Y.%m.%d )" +cp -R $REPOSITORY $TMP/$PRGNAM + +cd $TMP/$PRGNAM + +# configuration +cmake \ + -DCMAKE_INSTALL_PREFIX=$PREFIX \ + . + +# compilation +make -j$(nproc) + +# installation +make install DESTDIR=$PKG + +mkdir -p $PKG$PREFIX/doc/$PRGNAM +cp -R INSTALL LICENSE *.md $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 ( Fast C++ logging library. ) +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: https://github.com/gabime/spdlog +EOF + +# empaquetage +rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$TAG.txz diff --git a/wayland/dmenu-wayland/SlackBuild b/wayland/dmenu-wayland/SlackBuild new file mode 100755 index 00000000..4d51b2a6 --- /dev/null +++ b/wayland/dmenu-wayland/SlackBuild @@ -0,0 +1,81 @@ +#!/bin/sh + +# variables +VERSION=master_$(date +"%Y.%m.%d_%H.%M") +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/nyyManni/dmenu-wayland $REPOSITORY +( cd $REPOSITORY && git pull ) +VERSION="git_$( cd $REPOSITORY && git log -1 --format=%h_%ad --date=format:%Y.%m.%d )" + +cp -R $REPOSITORY $TMP/ + +cd $TMP/$PRGNAM/ +meson setup \ + --prefix /usr \ + --mandir /usr/man/ \ + -Dbuildtype=plain \ + -Dauto-features=enabled \ + -Dwrap-mode=nodownload \ + -Dsndio=disabled \ + 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 (dmenu for wayland-compositors) +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: https://github.com/dmenu-wayland +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/kanshi/SlackBuild b/wayland/kanshi/SlackBuild new file mode 100755 index 00000000..06bd1950 --- /dev/null +++ b/wayland/kanshi/SlackBuild @@ -0,0 +1,77 @@ +#!/bin/sh + +# variables +VERSION=master_$(date +"%Y.%m.%d_%H.%M") +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/emersion/kanshi $REPOSITORY +( cd $REPOSITORY && git pull ) +VERSION="git_$( cd $REPOSITORY && git log -1 --format=%h_%ad --date=format:%Y.%m.%d )" + +cp -R $REPOSITORY $TMP/ + +cd $TMP/$PRGNAM/ +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 kanshis 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 +# kanshi exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':'. + + |-----handy-ruler------------------------------------------------------| +$PRGNAM: $PRGNAM ( Dynamic display configuration ) +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: https://wayland.emersion.fr/kanshi/ +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/mako/SlackBuild b/wayland/mako/SlackBuild new file mode 100755 index 00000000..1ff6ff55 --- /dev/null +++ b/wayland/mako/SlackBuild @@ -0,0 +1,77 @@ +#!/bin/sh + +# variables +VERSION=master_$(date +"%Y.%m.%d_%H.%M") +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/emersion/mako $REPOSITORY +( cd $REPOSITORY && git pull ) +VERSION="git_$( cd $REPOSITORY && git log -1 --format=%h_%ad --date=format:%Y.%m.%d )" + +cp -R $REPOSITORY $TMP/ + +cd $TMP/$PRGNAM/ +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 (A lightweight Wayland notification daemon ) +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: https://wayland.emersion.fr/mako +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/seatd/SlackBuild b/wayland/seatd/SlackBuild index 3515f262..7c11859e 100755 --- a/wayland/seatd/SlackBuild +++ b/wayland/seatd/SlackBuild @@ -30,8 +30,7 @@ VERSION="git_$( cd $REPOSITORY && git log -1 --format=%h_%ad --date=format:%Y.%m cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM/ -meson build/ -meson configure --prefix /usr --mandir /usr/man/ build/ +meson setup --prefix /usr --mandir /usr/man/ build/ ninja -C build/ cd build/ meson install --destdir=$PKG diff --git a/wayland/sway/SlackBuild b/wayland/sway/SlackBuild index 7b88aa80..67c063d8 100755 --- a/wayland/sway/SlackBuild +++ b/wayland/sway/SlackBuild @@ -30,13 +30,49 @@ VERSION="git_$( cd $REPOSITORY && git log -1 --format=%h_%ad --date=format:%Y.%m cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM/ -meson build/ -meson configure --prefix /usr --mandir /usr/man/ build/ +meson setup \ + --prefix /usr \ + --mandir /usr/man/ \ + -Dsd-bus-provider=basu \ + -Dtray=auto \ + -Dlogind=enabled \ + -Dlogind-provider=elogind \ + build/ ninja -C build/ cd build/ meson install --destdir=$PKG cd ../ +cat < $PKG$PREFIX/bin/start_sway.sh +#!/bin/sh + +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=sway + +[ -e $HOME/.profile ] && . $HOME/.profile + +exec sway +EOF +chmod +x $PKG$PREFIX/bin/start_sway.sh + +sed -i 's|Exec=sway|Exec=/usr/bin/start_sway.sh|' $PKG$PREFIX/share/wayland-sessions/sway.desktop + mkdir -p $PKG$PREFIX/doc/$PRGNAM cp LICENSE *.md $PKG$PREFIX/doc/$PRGNAM/ diff --git a/wayland/swaybg/SlackBuild b/wayland/swaybg/SlackBuild index 95423278..e007b9d7 100755 --- a/wayland/swaybg/SlackBuild +++ b/wayland/swaybg/SlackBuild @@ -30,8 +30,7 @@ VERSION="git_$( cd $REPOSITORY && git log -1 --format=%h_%ad --date=format:%Y.%m cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM/ -meson build/ -meson configure --prefix /usr --mandir /usr/man/ build/ +meson setup --prefix /usr --mandir /usr/man/ build/ ninja -C build/ cd build/ meson install --destdir=$PKG diff --git a/wayland/swayidle/SlackBuild b/wayland/swayidle/SlackBuild index 96f28cc5..36d897b8 100755 --- a/wayland/swayidle/SlackBuild +++ b/wayland/swayidle/SlackBuild @@ -30,8 +30,7 @@ VERSION="git_$( cd $REPOSITORY && git log -1 --format=%h_%ad --date=format:%Y.%m cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM/ -meson build/ -meson configure --prefix /usr --mandir /usr/man/ build/ +meson setup --prefix /usr --mandir /usr/man/ build/ ninja -C build/ cd build/ meson install --destdir=$PKG diff --git a/wayland/swaylock/SlackBuild b/wayland/swaylock/SlackBuild index 515c8618..67558694 100755 --- a/wayland/swaylock/SlackBuild +++ b/wayland/swaylock/SlackBuild @@ -30,8 +30,7 @@ VERSION="git_$( cd $REPOSITORY && git log -1 --format=%h_%ad --date=format:%Y.%m cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM/ -meson build/ -meson configure --prefix /usr --mandir /usr/man/ build/ +meson setup --prefix /usr --mandir /usr/man/ build/ ninja -C build/ cd build/ meson install --destdir=$PKG diff --git a/wayland/waybar/SlackBuild b/wayland/waybar/SlackBuild new file mode 100755 index 00000000..7492d682 --- /dev/null +++ b/wayland/waybar/SlackBuild @@ -0,0 +1,81 @@ +#!/bin/sh + +# variables +VERSION=master_$(date +"%Y.%m.%d_%H.%M") +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/Alexays/Waybar $REPOSITORY +( cd $REPOSITORY && git pull ) +VERSION="git_$( cd $REPOSITORY && git log -1 --format=%h_%ad --date=format:%Y.%m.%d )" + +cp -R $REPOSITORY $TMP/ + +cd $TMP/$PRGNAM/ +meson setup \ + --prefix /usr \ + --mandir /usr/man/ \ + -Dbuildtype=plain \ + -Dauto-features=enabled \ + -Dwrap-mode=nodownload \ + -Dsndio=disabled \ + 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 (Highly customizable Wayland bar for Sway) +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: https://github.com/Alexays/Waybar +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/wlroots/SlackBuild b/wayland/wlroots/SlackBuild index 9b905b1b..b4e82e7b 100755 --- a/wayland/wlroots/SlackBuild +++ b/wayland/wlroots/SlackBuild @@ -30,8 +30,7 @@ VERSION="git_$( cd $REPOSITORY && git log -1 --format=%h_%ad --date=format:%Y.%m cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM/ -meson build/ -meson configure --prefix /usr --mandir /usr/man/ build/ +meson setup --prefix /usr --mandir /usr/man/ build/ ninja -C build/ cd build/ meson install --destdir=$PKG diff --git a/wayland/wlsunset/SlackBuild b/wayland/wlsunset/SlackBuild index deee267b..8553483f 100755 --- a/wayland/wlsunset/SlackBuild +++ b/wayland/wlsunset/SlackBuild @@ -30,8 +30,7 @@ VERSION="git_$( cd $REPOSITORY && git log -1 --format=%h_%ad --date=format:%Y.%m cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM/ -meson build/ -meson configure --prefix /usr --mandir /usr/man/ build/ +meson setup --prefix /usr --mandir /usr/man/ build/ ninja -C build/ cd build/ meson install --destdir=$PKG