#!/bin/sh # Copyright (c) 2005 Frederick Emmott CWD=`pwd` VERSION=6.9.0 ARCH=x86_64 BUILD=2 X11=x11-$VERSION-i486-3.tgz PKG=/tmp/package-32x11 TMP=/tmp/32x11 rm -rf $PKG $TMP mkdir -p $PKG cd $PKG explodepkg $CWD/$X11 mkdir $TMP mv $PKG/usr/X11R6/lib/X11/locale/lib/common $TMP/locale-common ( cd $PKG/usr/X11R6/lib ; rm -rf modules X11) # make links the other way :P ( cd $PKG/usr/X11R6/lib ; mv * ../../lib ) rm -rf $PKG/usr/X11R6 ( mkdir -p $PKG/usr/X11R6/lib/X11/locale/lib ; mv $TMP/locale-common $PKG/usr/X11R6/lib/X11/locale/lib/common ) ( cd $PKG ; find -name "*.la" | xargs rm ; find -name "*.a" | xargs rm ) ( cd $PKG/usr/lib ; ldconfig -n . ; rm -rf pkgconfig ) rm -rf $PKG/var $PKG/etc $PKG/bin $PKG/usr/bin rm install/slack-desc cat $CWD/slack-desc > install/slack-desc rm install/doinst.sh makepkg -l y -c n ../32x11-$VERSION-$ARCH-$BUILD.tgz