Browse Source
desktop/gnome-session: Update SlackBuild
This update removes a couple duplicate files that were installed by the
gnome-session package. Also added aarch64 support to the SlackBuild, in
line with the SBo templates.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
pull/216/head
Bob Funk
2 years ago
committed by
Willy Sudiarto Raharjo
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
1 changed files with
8 additions and
1 deletions
desktop/gnome-session/gnome-session.SlackBuild
@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=gnome-session
PRGNAM=gnome-session
VERSION=${VERSION:-42.0}
VERSION=${VERSION:-42.0}
BUILD=${BUILD:-3 }
BUILD=${BUILD:-4 }
TAG=${TAG:-_SBo}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
PKGTYPE=${PKGTYPE:-tgz}
@ -56,6 +56,9 @@ elif [ "$ARCH" = "i686" ]; then
elif [ "$ARCH" = "x86_64" ]; then
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
LIBDIRSUFFIX="64"
elif [ "$ARCH" = "aarch64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
else
else
SLKCFLAGS="-O2"
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
LIBDIRSUFFIX=""
@ -109,6 +112,10 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
find $PKG/usr/man -type f -exec gzip -9 {} \;
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
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
# Remove these duplicate desktop session entires:
rm -f $PKG/usr/share/wayland-sessions/gnome.desktop
rm -f $PKG/usr/share/xsessions/gnome.desktop
mkdir -p $PKG/etc/X11/xinit
mkdir -p $PKG/etc/X11/xinit
cat $CWD/xinitrc.gnome > $PKG/etc/X11/xinit/xinitrc.gnome
cat $CWD/xinitrc.gnome > $PKG/etc/X11/xinit/xinitrc.gnome