summaryrefslogtreecommitdiff
path: root/desktop/slim/slim.SlackBuild
diff options
context:
space:
mode:
authorMartin Lefebvre <dadexter@gmail.com>2010-05-11 19:44:04 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-11 19:44:04 +0200
commitbb084a69e3bcf9256c96aff1599424e436b83622 (patch)
tree3d39de010fa08d229dcb543860a080c7528f56d7 /desktop/slim/slim.SlackBuild
parent022be4b55de0d6dc9b5d6397775a87a29a172bc1 (diff)
downloadslackbuilds-bb084a69e3bcf9256c96aff1599424e436b83622.tar.gz
desktop/slim: Updated for version 1.3.0
Diffstat (limited to 'desktop/slim/slim.SlackBuild')
-rw-r--r--desktop/slim/slim.SlackBuild28
1 files changed, 17 insertions, 11 deletions
diff --git a/desktop/slim/slim.SlackBuild b/desktop/slim/slim.SlackBuild
index bef2bb73bc..4c9e2879f4 100644
--- a/desktop/slim/slim.SlackBuild
+++ b/desktop/slim/slim.SlackBuild
@@ -22,23 +22,27 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-# Modified by the SlackBuilds.org project
-
PRGNAM=slim
-VERSION=1.2.6
+VERSION=1.3.0
ARCH=${ARCH:-i486}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
-CWD=`pwd`
+
+CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
+# Since PAM is not included on a stock Slackware system, default to NO.
+# If you (shudder) have PAM installed, then run the build script like this:
+# PAM=YES ./slim.SlackBuild
+PAM=${PAM:-NO}
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP || exit 1
rm -rf $PRGNAM-$VERSION
-tar -xzvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1
cd $PRGNAM-$VERSION || exit 1
chown -R root:root .
chmod -R a-s,u+w,go+r-w .
@@ -51,24 +55,26 @@ elif [ "$ARCH" = "i686" ]; then
zcat $CWD/Makefile-i686.diff.gz | patch -p0 || exit 1
fi
-make || exit 1
+if [ "$PAM" = "YES" ]; then
+ make USE_PAM=1
+else
+ make || exit 1
+fi
+
make install DESTDIR=$PKG || exit 1
( cd $PKG
- find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
)
if [ -d $PKG/usr/man ]; then
( cd $PKG/usr/man
find . -type f -exec gzip -9 {} \;
- for i in `find . -type l` ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+ for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
)
fi
-mkdir -p $PKG/etc/X11/xinit
-install -m 0755 $CWD/xinitrc.slim $PKG/etc/X11/xinit/xinitrc.slim
-
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a COPYING ChangeLog INSTALL README THEMES TODO xinitrc.sample \
$PKG/usr/doc/$PRGNAM-$VERSION