diff options
author | nobody <nobody@nowhere> | 2010-05-12 17:40:00 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-12 17:40:00 +0200 |
commit | 416534e6087b0f89ff7c7f5c060534aa0cc90d8c (patch) | |
tree | 86f7c6ae5ddd64e8567b242b380e71e65918562b /graphics/mirage/mirage.SlackBuild | |
parent | 357e0acdaf4df60a8cccdf0724a45cc1fa00bd19 (diff) | |
download | slackbuilds-416534e6087b0f89ff7c7f5c060534aa0cc90d8c.tar.gz |
graphics/mirage: Updated for version 0.9.3
Diffstat (limited to 'graphics/mirage/mirage.SlackBuild')
-rw-r--r-- | graphics/mirage/mirage.SlackBuild | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/graphics/mirage/mirage.SlackBuild b/graphics/mirage/mirage.SlackBuild index fb391bf1c3..aa6bee9463 100644 --- a/graphics/mirage/mirage.SlackBuild +++ b/graphics/mirage/mirage.SlackBuild @@ -23,9 +23,9 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=mirage -VERSION=0.9.3 +VERSION=${VERSION:-0.9.3} ARCH=${ARCH:-i486} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} CWD=$(pwd) @@ -33,8 +33,6 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -DOCS="CHANGELOG COPYING README TODO TRANSLATORS" - if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" elif [ "$ARCH" = "i686" ]; then @@ -43,13 +41,14 @@ elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" fi +set -e + rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT -cd $TMP || exit 1 +cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 || exit 1 -cd $PRGNAM-$VERSION || exit 1 - +tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 +cd $PRGNAM-$VERSION chown -R root:root . find . \ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ @@ -59,8 +58,8 @@ find . \ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ -python setup.py build || exit 1 -python setup.py install --root $PKG || exit 1 + +python setup.py install --root $PKG ( cd $PKG find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null @@ -68,13 +67,14 @@ python setup.py install --root $PKG || exit 1 ) mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION +for i in CHANGELOG COPYING README TODO TRANSLATORS ; do + ln -s /usr/share/mirage/$i $PKG/usr/doc/$PRGNAM-$VERSION/$i ; +done cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 644 {} \; mkdir -p $PKG/install -cat $CWD/doinst.sh > $PKG/install/doinst.sh 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 |