diff options
author | Daniel de Kok <danieldk@pobox.com> | 2010-05-13 00:22:52 +0200 |
---|---|---|
committer | Michiel van Wessem <michiel@slackbuilds.org> | 2010-05-13 00:22:52 +0200 |
commit | e9c902a0bacad18483702597efeaf309e2ea5ed3 (patch) | |
tree | e8c7e4712ec221b64d69f8e596a4257bfe00fb89 /desktop/matchbox-window-manager/matchbox-window-manager.SlackBuild | |
parent | 4fe08c2c369845698ad04e024720c6a8c75ff21b (diff) | |
download | slackbuilds-e9c902a0bacad18483702597efeaf309e2ea5ed3.tar.gz |
desktop/matchbox-window-manager: Updated for version 1.1
Diffstat (limited to 'desktop/matchbox-window-manager/matchbox-window-manager.SlackBuild')
-rw-r--r-- | desktop/matchbox-window-manager/matchbox-window-manager.SlackBuild | 34 |
1 files changed, 23 insertions, 11 deletions
diff --git a/desktop/matchbox-window-manager/matchbox-window-manager.SlackBuild b/desktop/matchbox-window-manager/matchbox-window-manager.SlackBuild index 82c93cf41b..034de204bc 100644 --- a/desktop/matchbox-window-manager/matchbox-window-manager.SlackBuild +++ b/desktop/matchbox-window-manager/matchbox-window-manager.SlackBuild @@ -22,14 +22,12 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# Exit on most errors -set -e - PRGNAM=matchbox-window-manager VERSION=1.1 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM @@ -37,15 +35,22 @@ OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" fi +set -e + rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xjvf $CWD/$PRGNAM-$VERSION.tar.bz2 +tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 cd $PRGNAM-$VERSION chown -R root:root . chmod -R u+w,go+r-w,a-s . @@ -54,26 +59,33 @@ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc \ --localstatedir=/var \ --enable-expat \ --enable-startup-notification \ - --enable-session + --enable-session \ + --build=$ARCH-slackware-linux make make install-strip DESTDIR=$PKG -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a AUTHORS COPYING ChangeLog INSTALL NEWS README \ - $PKG/usr/doc/$PRGNAM-$VERSION -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild - # Add xinitrc file for matchbox mkdir -p $PKG/etc/X11/xinit install -m 0755 $CWD/xinitrc.matchbox $PKG/etc/X11/xinit/xinitrc.matchbox +# Don't clobber the keyboard config +mv $PKG/etc/matchbox/kbdconfig $PKG/etc/matchbox/kbdconfig.new + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + AUTHORS COPYING ChangeLog INSTALL NEWS README \ + $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.tgz +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |