stack + lots of wayland stuff
This commit is contained in:
parent
99cc715405
commit
9d64023474
17 changed files with 690 additions and 17 deletions
|
@ -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
|
||||
|
|
75
l/basu/SlackBuild
Executable file
75
l/basu/SlackBuild
Executable file
|
@ -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 <<EOF > $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
|
80
l/fmt/SlackBuild
Executable file
80
l/fmt/SlackBuild
Executable file
|
@ -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 <<EOF > $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
|
82
l/hinnant-date/SlackBuild
Executable file
82
l/hinnant-date/SlackBuild
Executable file
|
@ -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 <<EOF > $PKG/install/slack-desc
|
||||
$PRGNAM: $PRGNAM (A date and time library based on the C++11/14/17 <chrono> 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
|
80
l/spdlog/SlackBuild
Executable file
80
l/spdlog/SlackBuild
Executable file
|
@ -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 <<EOF > $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
|
81
wayland/dmenu-wayland/SlackBuild
Executable file
81
wayland/dmenu-wayland/SlackBuild
Executable file
|
@ -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 <<EOF > $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
|
77
wayland/kanshi/SlackBuild
Executable file
77
wayland/kanshi/SlackBuild
Executable file
|
@ -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 <<EOF > $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
|
77
wayland/mako/SlackBuild
Executable file
77
wayland/mako/SlackBuild
Executable file
|
@ -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 <<EOF > $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
|
|
@ -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
|
||||
|
|
|
@ -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 <<EOF > $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/
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
81
wayland/waybar/SlackBuild
Executable file
81
wayland/waybar/SlackBuild
Executable file
|
@ -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 <<EOF > $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
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue