diff options
author | B. Watson <yalhcru@gmail.com> | 2018-09-30 21:33:31 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-10-21 06:47:10 +0700 |
commit | a8804754f13357f31ccf20f60833f52ff1d85029 (patch) | |
tree | 21a3c7f89eff44c7ca7e7fd5860ca88c45910321 /libraries/libdockapp/libdockapp.SlackBuild | |
parent | 4d2f6aa33a52e9849aecdd59864b29940e829962 (diff) |
libraries/libdockapp: New maintainer, minor fixes.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'libraries/libdockapp/libdockapp.SlackBuild')
-rw-r--r-- | libraries/libdockapp/libdockapp.SlackBuild | 53 |
1 files changed, 35 insertions, 18 deletions
diff --git a/libraries/libdockapp/libdockapp.SlackBuild b/libraries/libdockapp/libdockapp.SlackBuild index e937f71dd2da9..14acf78dcccab 100644 --- a/libraries/libdockapp/libdockapp.SlackBuild +++ b/libraries/libdockapp/libdockapp.SlackBuild @@ -1,13 +1,27 @@ #!/bin/sh -# Slackware build script for libDockApp -# Written by Cezary M. Kruk (c.kruk@bigfoot.com) -# +# Slackware build script for libdockapp +# Originally written by Cezary M. Kruk (email removed) + # Modified by the SlackBuilds.org project. +# Modified and now maintained by B. Watson <yalhcru@gmail.com>. +# Original script had no license. Modified version released under +# the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. + +# 20180930 bkw: +# - Take over maintenance, BUILD=2. +# - Add doinst.sh with mkfontdir stuff. Specifically, the old version +# would install a broken /usr/share/fonts/misc/fonts.dir file that +# messed up X's ability to use the misc fonts. +# - Install all the docs to /usr/doc/$PRGNAM-$VERSION, not /usr/share/doc. +# - Don't install useless INSTALL doc. +# - Minor script tweaks/cleanups. +# - s/Window Maker/WindowMaker/ in README and slack-desc. + PRGNAM=libdockapp VERSION=${VERSION:-0.7.2} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -42,15 +56,14 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf dockapps-b9baa8f +rm -rf $PRGNAM-$VERSION +mkdir $PRGNAM-$VERSION +cd $PRGNAM-$VERSION tar -xvf $CWD/$PRGNAM-$VERSION.tar.gz -cd dockapps-b9baa8f +cd dockapps-* chown -R root:root . -find -L . \ - \( -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 {} \; +find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ + \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+ autoreconf -fi CFLAGS="$SLKCFLAGS" \ @@ -60,24 +73,28 @@ CFLAGS="$SLKCFLAGS" \ --sysconfdir=/etc \ --localstatedir=/var \ --mandir=/usr/man \ + --docdir=/usr/doc/$PRGNAM-$VERSION/examples \ --disable-debug \ --enable-static=no \ --build=$ARCH-slackware-linux -make XFONTDIR="\$(DESTDIR)/usr/share/fonts" -make install DESTDIR=$PKG XFONTDIR="\$(DESTDIR)/usr/share/fonts" +make XFONTDIR="/usr/share/fonts" +make install-strip DESTDIR=$PKG XFONTDIR="\$(DESTDIR)/usr/share/fonts" -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 +# When 15.0 comes along, uncomment this line: +# rm -f $PKG/usr/lib$LIBDIRSUFFIX/*.la + +# Stop installing broken fonts.dir. doinst.sh will generate a correct one. +rm -rf $PKG/usr/share/fonts/misc/fonts.dir mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a AUTHORS BUGS COPYING ChangeLog INSTALL NEWS README \ - $PKG/usr/doc/$PRGNAM-$VERSION +cp -a AUTHORS BUGS COPYING ChangeLog NEWS README $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +# doinst.sh came from Pat's font-misc-misc-1.1.2-noarch-1 package. 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} - |