diff options
Diffstat (limited to 'desktop/gnome-shell')
-rw-r--r-- | desktop/gnome-shell/0001-build-with-gsettings-desktop-schemas-40.patch | 15 | ||||
-rw-r--r-- | desktop/gnome-shell/README | 12 | ||||
-rw-r--r-- | desktop/gnome-shell/doinst.sh | 26 | ||||
-rw-r--r-- | desktop/gnome-shell/douninst.sh | 11 | ||||
-rw-r--r-- | desktop/gnome-shell/gnome-shell.SlackBuild | 173 | ||||
-rw-r--r-- | desktop/gnome-shell/gnome-shell.info | 12 | ||||
-rw-r--r-- | desktop/gnome-shell/gnome-shell.wrap | 14 | ||||
-rw-r--r-- | desktop/gnome-shell/slack-desc | 19 |
8 files changed, 282 insertions, 0 deletions
diff --git a/desktop/gnome-shell/0001-build-with-gsettings-desktop-schemas-40.patch b/desktop/gnome-shell/0001-build-with-gsettings-desktop-schemas-40.patch new file mode 100644 index 0000000000..b82d0edc5e --- /dev/null +++ b/desktop/gnome-shell/0001-build-with-gsettings-desktop-schemas-40.patch @@ -0,0 +1,15 @@ +# Force gnome-shell-41.9 to build with gsettings-desktop-schemas-40.0, even +# though it requires 41.0. We will provide the missing lockdown schema via +# a custom gschema.override file. +diff -Naur gnome-shell-41.9/meson.build gnome-shell-41.9-patched/meson.build +--- gnome-shell-41.9/meson.build 2022-11-07 22:12:51.545039805 -0600 ++++ gnome-shell-41.9-patched/meson.build 2022-11-07 22:15:40.262049957 -0600 +@@ -28,7 +28,7 @@ + gtk_req = '>= 3.15.0' + mutter_req = '>= 41.0' + polkit_req = '>= 0.100' +-schemas_req = '>= 41.alpha' ++schemas_req = '>= 40.alpha' + startup_req = '>= 0.11' + ibus_req = '>= 1.5.19' + gnome_desktop_req = '>= 3.35.90' diff --git a/desktop/gnome-shell/README b/desktop/gnome-shell/README new file mode 100644 index 0000000000..0663a83136 --- /dev/null +++ b/desktop/gnome-shell/README @@ -0,0 +1,12 @@ +GNOME Shell provides core user interface functions for the GNOME +desktop, like switching to windows and launching applications. GNOME +Shell takes advantage of the capabilities of modern graphics hardware +and introduces innovative user interface concepts to provide a visually +attractive and easy to use experience. + +Note: This build of gnome-shell includes it own gschema files from +gsettings-desktop-schemas-41.0, which allows gnome-shell-41 to run on +Slackware 15.0. These schema files are kept separate from Slackware's +copy, which are at version 40.0. gnome-shell is made aware of these +custom built schemas using a wrapper script. + diff --git a/desktop/gnome-shell/doinst.sh b/desktop/gnome-shell/doinst.sh new file mode 100644 index 0000000000..7cd2b68aa3 --- /dev/null +++ b/desktop/gnome-shell/doinst.sh @@ -0,0 +1,26 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi + +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 -f usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi + +if [ -e usr/share/glib-2.0/schemas ]; then + if [ -x /usr/bin/glib-compile-schemas ]; then + /usr/bin/glib-compile-schemas usr/share/glib-2.0/schemas >/dev/null 2>&1 + fi +fi + +# Set the gnome-shell wrapper executable: +( cd usr/bin ; chmod 0755 gnome-shell ) + +# Compile our custom provided schemas from gsettings-desktop-schemas-41.0: +if [ -e usr/share/gnome-shell/gsettings-desktop-schemas/glib-2.0/schemas ]; then + if [ -x /usr/bin/glib-compile-schemas ]; then + /usr/bin/glib-compile-schemas usr/share/gnome-shell/gsettings-desktop-schemas/glib-2.0/schemas >/dev/null 2>&1 + fi +fi + diff --git a/desktop/gnome-shell/douninst.sh b/desktop/gnome-shell/douninst.sh new file mode 100644 index 0000000000..ee92d4eb3c --- /dev/null +++ b/desktop/gnome-shell/douninst.sh @@ -0,0 +1,11 @@ +# The gnome-shell doinst.sh script compiles custom gsettings-schemas +# in the location /usr/share/gnome-shell/gsettings-desktop-schemas +# +# The compiled schemas will remain after package removal, so clean +# them up: + +GSCHEMA_DIR="/usr/share/gnome-shell/gsettings-desktop-schemas" +if [ -e "$GSCHEMA_DIR" ]; then + rm -rf "$GSCHEMA_DIR" +fi + diff --git a/desktop/gnome-shell/gnome-shell.SlackBuild b/desktop/gnome-shell/gnome-shell.SlackBuild new file mode 100644 index 0000000000..06eb31e9e7 --- /dev/null +++ b/desktop/gnome-shell/gnome-shell.SlackBuild @@ -0,0 +1,173 @@ +#!/bin/bash + +# Slackware build script for gnome-shell + +# Copyright 2022 Bob Funk Winnipeg, Canada +# 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. + +# NOTE: This SlackBuild also builds gsettings-desktop-schemas-41.0 and packages +# it along with gnome-shell. This allows gnome-shell-41 to work on +# Slackware-15.0, which comes with gsettings-desktop-schemas-40.0. +# TO make this work we patch gnome-shell to allow it to build against +# Slackware's gsettings-desktop-schemas-40.0. Then we install the 41.0 schemas +# in a alternate location, compile them, and show gnome-shell where they are +# using XDG_DATA_DIRS at runtime with a wrapper script. + +cd $(dirname $0) ; CWD=$(pwd) + +PRGNAM=gnome-shell +VERSION=${VERSION:-41.9} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} + +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 + +# Variables for gsettings-desktop-schemas build: +GDS_NAM="gsettings-desktop-schemas" +GDS_VER="41.0" +GDS_DATADIR="/usr/share/$PRGNAM/$GDS_NAM" +CLEANUP=cleanup + +# Build gsettings-desktop-schemas-41.0: +rm -rf $GDS_NAM-$GDS_VER +tar xvf $CWD/$GDS_NAM-$GDS_VER.tar.xz +cd $GDS_NAM-$GDS_VER +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=info \ + --includedir=$CLEANUP \ + --libdir=$CLEANUP \ + --datadir=$GDS_DATADIR \ + --localedir=$CLEANUP \ + --localstatedir=/var \ + --mandir=man \ + --prefix=/usr \ + --sysconfdir=/etc \ + -Dstrip=true + "${NINJA:=ninja}" + DESTDIR=$PKG $NINJA install +cd ../.. + +# Remove everything from gsettings-desktop-schemas except the gschema files: +rm -rf $PKG/usr/$CLEANUP $PKG$GDS_DATADIR/{GConf,gir-1.0,pkgconfig} + +# Build gnome-shell: +tar xvf $CWD/$PRGNAM-$VERSION.tar.?z +cd $PRGNAM-$VERSION +chown -R root:root . +find -L . -prune -name 'subprojects/gvc/.gitlab-ci' \ + \( -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 {} \; + +# Patch meson.build to allow gsettings-desktop-schemas-40.0: +patch -Np1 -i $CWD/0001-build-with-gsettings-desktop-schemas-40.patch + +mkdir build +cd build + CFLAGS="$SLKCFLAGS" \ + CXXFLAGS="$SLKCFLAGS" \ + meson .. \ + --buildtype=release \ + --infodir=/usr/info \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --localstatedir=/var \ + --libexecdir=/usr/libexec \ + --mandir=/usr/man \ + --prefix=/usr \ + --sysconfdir=/etc \ + -Dstrip=true \ + -Dsystemd=false + "${NINJA:=ninja}" + DESTDIR=$PKG $NINJA install +cd .. + +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/usr/man -type f -exec gzip -9 {} \; +for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done + +# Install the gnome-shell wrapper script: +mv $PKG/usr/bin/{gnome-shell,gnome-shell-bin} +cat $CWD/gnome-shell.wrap > $PKG/usr/bin/gnome-shell + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + COPYING HACKING.md NEWS 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 +cat $CWD/douninst.sh > $PKG/install/douninst.sh + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/desktop/gnome-shell/gnome-shell.info b/desktop/gnome-shell/gnome-shell.info new file mode 100644 index 0000000000..6cc51455d1 --- /dev/null +++ b/desktop/gnome-shell/gnome-shell.info @@ -0,0 +1,12 @@ +PRGNAM="gnome-shell" +VERSION="41.9" +HOMEPAGE="https://gitlab.gnome.org/GNOME/gnome-shell" +DOWNLOAD="https://download.gnome.org/sources/gnome-shell/41/gnome-shell-41.9.tar.xz \ +https://download.gnome.org/sources/gsettings-desktop-schemas/41/gsettings-desktop-schemas-41.0.tar.xz" +MD5SUM="abf21a9bd1b626ed082d404b43145a8a \ +1d39684b07b33d06de7be230a126ca56" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="adobe-source-code-pro-font evolution-data-server gnome-autoar gnome-control-center mutter" +MAINTAINER="Bob Funk" +EMAIL="bobfunk11@gmail.com" diff --git a/desktop/gnome-shell/gnome-shell.wrap b/desktop/gnome-shell/gnome-shell.wrap new file mode 100644 index 0000000000..51efe348f8 --- /dev/null +++ b/desktop/gnome-shell/gnome-shell.wrap @@ -0,0 +1,14 @@ +#!/bin/bash +# +# gnome-shell wrapper script to include a non-standard gschemas directory. +# + +SYS_DATADIR=/usr/share +ALT_DATADIR=$SYS_DATADIR/gnome-shell/gsettings-desktop-schemas + +# Using XDG_DATA_DIRS, since gnome-shell searches these paths for schemas (in order): +if [ -e "$ALT_DATADIR" ]; then + export XDG_DATA_DIRS=$ALT_DATADIR:$SYS_DATADIR:$XDG_DATA_DIRS +fi + +exec /usr/bin/gnome-shell-bin "$@" diff --git a/desktop/gnome-shell/slack-desc b/desktop/gnome-shell/slack-desc new file mode 100644 index 0000000000..48255668e1 --- /dev/null +++ b/desktop/gnome-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------------------------------------------------------| +gnome-shell: gnome-shell (GNOME Shell) +gnome-shell: +gnome-shell: GNOME Shell provides core interface functions like switching windows, +gnome-shell: launching applications or see your notifications. It takes advantage +gnome-shell: of the capabilities of modern graphics hardware and introduces +gnome-shell: innovative user interface concepts to provide a delightful and easy +gnome-shell: to use experience. GNOME Shell is the defining technology of the +gnome-shell: GNOME user experience. +gnome-shell: +gnome-shell: https://gitlab.gnome.org/GNOME/gnome-shell/ +gnome-shell: |