aboutsummaryrefslogtreecommitdiff
path: root/desktop/spectrwm/spectrwm.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/spectrwm/spectrwm.SlackBuild')
-rw-r--r--desktop/spectrwm/spectrwm.SlackBuild20
1 files changed, 13 insertions, 7 deletions
diff --git a/desktop/spectrwm/spectrwm.SlackBuild b/desktop/spectrwm/spectrwm.SlackBuild
index 5ad7b39c4354c..ca3cc4494c620 100644
--- a/desktop/spectrwm/spectrwm.SlackBuild
+++ b/desktop/spectrwm/spectrwm.SlackBuild
@@ -40,6 +40,7 @@ CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
+UPNAM=$PRGNAM-SPECTRWM_2_7_2 # changed to allow cd to proper folder
if [ "$ARCH" = "i486" ];then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
@@ -61,8 +62,8 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tgz
-cd $PRGNAM-$VERSION
+tar xvf $CWD/$UPNAM.tar.gz
+cd $UPNAM
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -90,14 +91,19 @@ rm -f $PKG/usr/bin/scrotwm
# Compress the manpages
( cd $PKG/usr/man; find . -type f -exec gzip -9 {} \; )
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/examples/keybindings
+mkdir -p $PKG/usr/doc/$UPNAM/examples/keybindings
install -m0644 -oroot -groot initscreen.sh $CWD/examples/* \
- $PKG/usr/doc/$PRGNAM-$VERSION/examples/
-cp -a spectrwm.conf $PKG/usr/doc/$PRGNAM-$VERSION/examples/spectrwm_orig.conf
-cp -a spectrwm_*.conf $PKG/usr/doc/$PRGNAM-$VERSION/examples/keybindings/
-cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+ $PKG/usr/doc/$UPNAM/examples/
+cp -a spectrwm.conf $PKG/usr/doc/$UPNAM/examples/spectrwm_orig.conf
+cp -a spectrwm_*.conf $PKG/usr/doc/$UPNAM/examples/keybindings/
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$UPNAM/$PRGNAM.SlackBuild
find $PKG/usr/doc -type f -exec chmod 0644 {} \;
+# install xinitrc script
+mkdir -p $PKG/etc/X11/xinit
+cat $CWD/xinitrc.$PRGNAM > $PKG/etc/X11/xinit/xinitrc.$PRGNAM
+chmod 0755 $PKG/etc/X11/xinit/xinitrc.$PRGNAM
+
# desktop integration
mkdir -m755 -p "${PKG}/usr/share/applications/"
cp -a linux/spectrwm.desktop "${PKG}/usr/share/applications/"