summaryrefslogtreecommitdiff
path: root/desktop/wminfo/wminfo.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/wminfo/wminfo.SlackBuild')
-rw-r--r--desktop/wminfo/wminfo.SlackBuild25
1 files changed, 15 insertions, 10 deletions
diff --git a/desktop/wminfo/wminfo.SlackBuild b/desktop/wminfo/wminfo.SlackBuild
index f6e3ea3b42..83dad4b708 100644
--- a/desktop/wminfo/wminfo.SlackBuild
+++ b/desktop/wminfo/wminfo.SlackBuild
@@ -6,16 +6,14 @@
# Modified by the SlackBuilds.org project.
PRGNAM=wminfo
-VERSION=${VERSION:-1.51}
+VERSION=${VERSION:-2.00}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -44,9 +42,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM
+rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
-cd $PRGNAM
+cd $PRGNAM-$VERSION
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
@@ -55,20 +53,27 @@ find . \
-exec chmod 644 {} \;
cd wminfo
+ ./configure --prefix=/usr
make \
LIBDIR="-L/usr/lib${LIBDIRSUFFIX}/X11" \
FLAGS="$SLKCFLAGS"
- # Copy executable to the correct location
- mkdir -p $PKG/usr/bin $PKG/usr/share/pixmaps
- cp -a wminfo $PKG/usr/bin
- cp -a wminfo.xpm $PKG/usr/share/pixmaps
+
+# Copy executable to the correct location
+mkdir -p $PKG/usr/bin
+cp -a wminfo $PKG/usr/bin
+cp -a ../contrib/* $PKG/usr/bin
+rm $PKG/usr/bin/README.contrib
cd -
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+mkdir -p $PKG/usr/man/man1
+cp -a doc/wminfo.1 $PKG/usr/man/man1
+gzip -9 $PKG/usr/man/man1/wminfo.1
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a CHANGES COPYING INSTALL README TODO plugins \
+cp -a COPYING ChangeLog INSTALL Plugins-HOWTO README TODO plugins.offline plugins.online samples \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild