summaryrefslogtreecommitdiffstats
path: root/system/lxdm/lxdm.SlackBuild
diff options
context:
space:
mode:
author Sebastien BALLET2017-08-18 15:18:49 +0200
committer Willy Sudiarto Raharjo2017-08-19 02:10:35 +0200
commit27ad8067c08d00ecec9ee2cf6b46793432e0069a (patch)
treef45b02f3d9fcda37adcc9613b6b90dca2590eb41 /system/lxdm/lxdm.SlackBuild
parent022d9939373a965dc30fc703a1568df6e5441b81 (diff)
downloadslackbuilds-27ad8067c08d00ecec9ee2cf6b46793432e0069a.tar.gz
system/lxdm: Added a Slackware theme, cleanups.
Switch to build the gtk+3 version by default Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'system/lxdm/lxdm.SlackBuild')
-rw-r--r--system/lxdm/lxdm.SlackBuild36
1 files changed, 31 insertions, 5 deletions
diff --git a/system/lxdm/lxdm.SlackBuild b/system/lxdm/lxdm.SlackBuild
index 5d4e92df1b..3a44265c69 100644
--- a/system/lxdm/lxdm.SlackBuild
+++ b/system/lxdm/lxdm.SlackBuild
@@ -25,12 +25,12 @@
PRGNAM=lxdm
VERSION=${VERSION:-20170805_e3e7517}
-BUILD=${BUILD:-3}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -41,8 +41,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -55,7 +55,15 @@ else
LIBDIRSUFFIX=""
fi
-with_gtk3="" ; [ "${GTK3:-no}" != "no" ] && with_gtk3="--enable-gtk3"
+# InduSlack lxdm theme version number
+#
+INDUSLACK_VER=${INDUSLACK_VER:-20170818}
+
+# Defines whether or not to install InduSlack theme
+#
+WITH_INDUSLACK=${WITH_INDUSLACK:-yes}
+
+with_gtk3="" ; [ "${GTK3:-yes}" = "yes" ] && with_gtk3="--enable-gtk3"
set -e
@@ -91,6 +99,14 @@ patch -p1 < $CWD/patches/remove_suse_from_Xsession.diff
# to maintain ; let's hope I don't eat those words. --rworkman
patch -p1 < $CWD/patches/lxdm-set_DESKTOP_SESSION_in_env.diff
+# Set the minimum height of the user list to 100px in greeter-gtk3.ui (Gtk3
+# Industrial theme ui file). Without this, the user list is too small and
+# barely unusable.
+# According to upstream that seems to be related to a bug in Gtk+3
+# version(ie. 3.18.9) shipped with Slackware 14.2.
+#
+patch -p0 < $CWD/patches/set_user_list_scrolled_min_content_height.patch
+
sh autogen.sh || true
CFLAGS="$SLKCFLAGS" \
@@ -134,6 +150,16 @@ EOF
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
+if [ "${WITH_INDUSLACK}" = "yes" ] ; then
+ tar xvf $CWD/InduSlack-lxdm-theme-${INDUSLACK_VER}.tar.gz -C $PKG/usr/share/lxdm/themes
+ chown -R root:root $PKG/usr/share/lxdm/themes/InduSlack
+ find -L $PKG/usr/share/lxdm/themes/InduSlack \
+ \( -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 {} \;
+fi
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
AUTHORS COPYING INSTALL README TODO \