diff options
author | Damian Perticone <mjolnirdam@gmail.com> | 2022-04-30 13:40:26 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-04-30 13:52:15 +0700 |
commit | bb4047b4b2a38e81917b51330b0bdb159ae40218 (patch) | |
tree | a812e38975966dc530e1c829d026c17c2a4a2090 /desktop/wf-shell | |
parent | 5850a1c285d7a16469ebe6ae55519e2d0accc063 (diff) |
desktop/wf-shell: Added (GTK3-based panel for wayfire).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'desktop/wf-shell')
-rw-r--r-- | desktop/wf-shell/README | 8 | ||||
-rw-r--r-- | desktop/wf-shell/doinst.sh | 5 | ||||
-rw-r--r-- | desktop/wf-shell/slack-desc | 19 | ||||
-rw-r--r-- | desktop/wf-shell/wf-shell.SlackBuild | 118 | ||||
-rw-r--r-- | desktop/wf-shell/wf-shell.info | 10 |
5 files changed, 160 insertions, 0 deletions
diff --git a/desktop/wf-shell/README b/desktop/wf-shell/README new file mode 100644 index 0000000000000..80a1d22c6e79f --- /dev/null +++ b/desktop/wf-shell/README @@ -0,0 +1,8 @@ +wf-shell is a repository which contains the various components needed +to built a fully functional DE based around wayfire. +Currently it has only a GTK-based panel and background client. + +To configure the panel and the dock, wf-shell uses a config file located +(by default) in ~/.config/wf-shell.ini An example configuration +can be found in the file wf-shell.ini.example, alongside with comments +what each option does. diff --git a/desktop/wf-shell/doinst.sh b/desktop/wf-shell/doinst.sh new file mode 100644 index 0000000000000..8542d1c18e4c0 --- /dev/null +++ b/desktop/wf-shell/doinst.sh @@ -0,0 +1,5 @@ +if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then + if [ -x /usr/bin/gtk-update-icon-cache ]; then + /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi diff --git a/desktop/wf-shell/slack-desc b/desktop/wf-shell/slack-desc new file mode 100644 index 0000000000000..ecc907872853a --- /dev/null +++ b/desktop/wf-shell/slack-desc @@ -0,0 +1,19 @@ +# 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 ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +wf-shell: wf-shell (GTK3-based panel for wayfire) +wf-shell: +wf-shell: Wf-shell is a GTK3-based panel for wayfire contains the various +wf-shell: components needed to built a fully functional DE based around wayfire. +wf-shell: Currently it has only a GTK-based panel and background client. +wf-shell: +wf-shell: +wf-shell: +wf-shell: +wf-shell: Home: https://github.com/WayfireWM/wf-shell +wf-shell: diff --git a/desktop/wf-shell/wf-shell.SlackBuild b/desktop/wf-shell/wf-shell.SlackBuild new file mode 100644 index 0000000000000..3b4e17ebca594 --- /dev/null +++ b/desktop/wf-shell/wf-shell.SlackBuild @@ -0,0 +1,118 @@ +#!/bin/bash + +# Slackware build script for wf-shell + +# Copyright 2022 Damian Perticone Berisso, Argentina +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +cd $(dirname $0) ; CWD=$(pwd) + +PRGNAM=wf-shell +VERSION=${VERSION:-0.7.0} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-txz} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.xz +cd $PRGNAM-$VERSION +chown -R root:root . +find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +mkdir build +cd build + CFLAGS="$SLKCFLAGS" \ + CXXFLAGS="$SLKCFLAGS" \ + meson .. \ + --buildtype=release \ + --infodir=/usr/info \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --localstatedir=/var \ + --mandir=/usr/man \ + --prefix=/usr \ + --sysconfdir=/etc \ + -Dstrip=true \ + -Dpulse=auto \ + -Dwayland-logout=true \ + + "${NINJA:=ninja}" + DESTDIR=$PKG $NINJA install +cd .. + +rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la + +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +find $PKG -name perllocal.pod \ + -o -name ".packlist" \ + -o -name "*.bs" \ + | xargs rm -f + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a LICENSE README.md $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/desktop/wf-shell/wf-shell.info b/desktop/wf-shell/wf-shell.info new file mode 100644 index 0000000000000..a0d3858a6f095 --- /dev/null +++ b/desktop/wf-shell/wf-shell.info @@ -0,0 +1,10 @@ +PRGNAM="wf-shell" +VERSION="0.7.0" +HOMEPAGE="https://github.com/WayfireWM/wf-shell" +DOWNLOAD="https://github.com/WayfireWM/wf-shell/releases/download/v0.7.0/wf-shell-0.7.0.tar.xz" +MD5SUM="253a91be3986a9f72b31ef15deede510" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="wayfire gtk-layer-shell" +MAINTAINER="Damian Perticone" +EMAIL="mjolnirdam@gmail.com" |