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.SlackBuild24
1 files changed, 17 insertions, 7 deletions
diff --git a/desktop/wminfo/wminfo.SlackBuild b/desktop/wminfo/wminfo.SlackBuild
index f30f5f0b28..06eb042909 100644
--- a/desktop/wminfo/wminfo.SlackBuild
+++ b/desktop/wminfo/wminfo.SlackBuild
@@ -6,7 +6,7 @@
# Modified by the SlackBuilds.org project.
PRGNAM=wminfo
-VERSION=${VERSION:-3.0.0}
+VERSION=${VERSION:-4.0.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -54,26 +54,36 @@ find . \
cd wminfo
./configure --prefix=/usr
- make FLAGS="$SLKCFLAGS"
- mkdir -p $PKG/usr/bin
- cp -a wminfo $PKG/usr/bin
-cd ..
+ make \
+ LIBDIR="-L/usr/lib${LIBDIRSUFFIX}/X11" \
+ FLAGS="$SLKCFLAGS"
+
+# 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.*
+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
+cp -a man/wminfo.1 $PKG/usr/man/man1
gzip -9 $PKG/usr/man/man1/wminfo.1
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
- BUGS COPYING ChangeLog INSTALL Plugins-HOWTO README* TODO contrib plugins.* samples \
+ BUGS COPYING ChangeLog INSTALL Plugins-HOWTO README README.1st README.CPU.usage \
+ README.benchmarks README.colors README.multi+wrapper THANKS TODO \
+ contrib plugins.binary plugins.conky plugins.offline plugins.online \
+ plugins.system samples \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}