diff options
author | David Spencer <nobbutl@yahoo.co.uk> | 2010-05-11 20:00:39 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-11 20:00:39 +0200 |
commit | 395bf27da5d7e5e6fb49683ddad3c24217e37519 (patch) | |
tree | 5a93728da2a598311540f268e23b4e7050a42161 /graphics/xtrkcad/xtrkcad.SlackBuild | |
parent | a08e8cad9b7c6d145ee2389ff350df23fbecbf35 (diff) | |
download | slackbuilds-395bf27da5d7e5e6fb49683ddad3c24217e37519.tar.gz |
graphics/xtrkcad: Added to 12.0 repository
Diffstat (limited to 'graphics/xtrkcad/xtrkcad.SlackBuild')
-rw-r--r-- | graphics/xtrkcad/xtrkcad.SlackBuild | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/graphics/xtrkcad/xtrkcad.SlackBuild b/graphics/xtrkcad/xtrkcad.SlackBuild new file mode 100644 index 0000000000..fdb4ff6108 --- /dev/null +++ b/graphics/xtrkcad/xtrkcad.SlackBuild @@ -0,0 +1,66 @@ +#!/bin/sh + +# Slackware build script for xtrkcad +# Written by David Spencer <nobbutl@yahoo.co.uk> +# This script is dedicated to the public domain + +# Modified by Robby Workman <rworkman@slackbuilds.org> + +PRGNAM=xtrkcad +VERSION=4.0.2 +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM/app +chown -R root:root . +chmod -R u+w,go+r-w,a-s . + +make product VERBOSE=1 COPTS="$SLKCFLAGS" + +mkdir -p $PKG/usr/lib/xtrkcad/params +cp -a lib/params/*.xtp $PKG/usr/lib/xtrkcad/params +cp -a lib/xtrkcad.{bug,enh,fix,upd,xtq} lib/logo.bmp bin/xtc64.xpm \ + help/xtrkcad.tip $PKG/usr/lib/xtrkcad + +mkdir -p $PKG/usr/bin +cp -a bin/xtrkcad $PKG/usr/bin +strip --strip-unneeded $PKG/usr/bin/xtrkcad + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/{examples,html,demos} +cp -a COPYING README bin/ChangeLog lib/aareadme.txt $PKG/usr/doc/$PRGNAM-$VERSION +cp -a lib/demos/*.xtr $PKG/usr/doc/$PRGNAM-$VERSION/demos +cp -a lib/examples/*.xtc $PKG/usr/doc/$PRGNAM-$VERSION/examples +cp -a doc/*.html doc/png.d/ doc/xtrkcad_lin.css $PKG/usr/doc/$PRGNAM-$VERSION/html +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +# The package expects docs to be in /usr/lib/xtrkcad/$dir +cd $PKG/usr/lib/xtrkcad + ln -s /usr/doc/$PRGNAM-$VERSION/examples . + ln -s /usr/doc/$PRGNAM-$VERSION/html . + ln -s /usr/doc/$PRGNAM-$VERSION/demos . +cd - + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz |