diff options
author | Niels Horn <niels.horn@gmail.com> | 2010-06-12 15:55:37 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-06-12 22:14:27 -0500 |
commit | cfc09bb4a6031b8ab1cc0a7de58b465ae78e3f67 (patch) | |
tree | ce5edd851b911f020e3f5ac855393eb663ce4525 | |
parent | a8c6d3606a7b28e758ca42a55dbcb9d1b80449d1 (diff) | |
download | slackbuilds-cfc09bb4a6031b8ab1cc0a7de58b465ae78e3f67.tar.gz |
graphics/leocad: Added (CAD program for lego-like bricks)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
-rw-r--r-- | graphics/leocad/README | 5 | ||||
-rw-r--r-- | graphics/leocad/doinst.sh | 4 | ||||
-rw-r--r-- | graphics/leocad/leocad.SlackBuild | 81 | ||||
-rw-r--r-- | graphics/leocad/leocad.desktop | 10 | ||||
-rw-r--r-- | graphics/leocad/leocad.info | 10 | ||||
-rw-r--r-- | graphics/leocad/leocad.png | bin | 0 -> 329 bytes | |||
-rw-r--r-- | graphics/leocad/slack-desc | 19 |
7 files changed, 129 insertions, 0 deletions
diff --git a/graphics/leocad/README b/graphics/leocad/README new file mode 100644 index 0000000000..4f820a1181 --- /dev/null +++ b/graphics/leocad/README @@ -0,0 +1,5 @@ +LeoCAD is a CAD program that uses bricks similar to those +found in many toys (but they don't represent any particular brand). +Currently it uses a library of more than 1000 different pieces. + +This requires leocad_pieces. diff --git a/graphics/leocad/doinst.sh b/graphics/leocad/doinst.sh new file mode 100644 index 0000000000..4e8ba7071d --- /dev/null +++ b/graphics/leocad/doinst.sh @@ -0,0 +1,4 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi + diff --git a/graphics/leocad/leocad.SlackBuild b/graphics/leocad/leocad.SlackBuild new file mode 100644 index 0000000000..472f6e1ea6 --- /dev/null +++ b/graphics/leocad/leocad.SlackBuild @@ -0,0 +1,81 @@ +#!/bin/sh + +# Slackware build script for LeoCAD: +# 3D design program for bricks + +# Written by Niels Horn <niels.horn@gmail.com> +# revision date 2010/05/27 + +PRGNAM=leocad +VERSION=${VERSION:-0.75_r949} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +# Automatically determine the architecture we're building on: +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +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" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $TMP/$PRGNAM-$VERSION $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION +chown -R root:root . +chmod -R u+w,go+r-w,a-s . + +make config PREFIX=/usr DESTDIR=$PKG +CFLAGS="$SLKCFLAGS" CPPFLAGS="$SLKCFLAGS" make +make install + +strip --strip-unneeded $PKG/usr/bin/$PRGNAM + +# Move & Compress man pages +mv $PKG/usr/share/man $PKG/usr/man +find $PKG/usr/man -type f -exec gzip -9 {} \; +for i in $(find $PKG/usr/man -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done + +# Copy icon & desktop file to package +mkdir -p $PKG/usr/share/{applications,pixmaps} +cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop +cat $CWD/$PRGNAM.png > $PKG/usr/share/pixmaps/$PRGNAM.png + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + CREDITS.txt README.txt docs/CHANGES.txt docs/COPYING.txt docs/INSTALL.txt \ + docs/LINUX.txt docs/TODO.txt $PKG/usr/doc/$PRGNAM-$VERSION +find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 644 {} \; +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.${PKGTYPE:-tgz} diff --git a/graphics/leocad/leocad.desktop b/graphics/leocad/leocad.desktop new file mode 100644 index 0000000000..fd8ffbc739 --- /dev/null +++ b/graphics/leocad/leocad.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Version=1.0 +Type=Application +Name=leocad +Comment=LeoCAD 3D Design program +Categories=Graphics; +Exec=/usr/bin/leocad +Icon=leocad +Terminal=false +StartupNotify=false diff --git a/graphics/leocad/leocad.info b/graphics/leocad/leocad.info new file mode 100644 index 0000000000..1f9e1621c9 --- /dev/null +++ b/graphics/leocad/leocad.info @@ -0,0 +1,10 @@ +PRGNAM="leocad" +VERSION="0.75_r949" +HOMEPAGE="http://www.leocad.org/" +DOWNLOAD="http://www.nielshorn.net/_download/slackware/source/leocad-0.75_r949.tar.gz" +MD5SUM="c706143221e56ded70d71260092cd029" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +MAINTAINER="Niels Horn" +EMAIL="niels.horn@gmail.com" +APPROVED="rworkman" diff --git a/graphics/leocad/leocad.png b/graphics/leocad/leocad.png Binary files differnew file mode 100644 index 0000000000..2a766c616a --- /dev/null +++ b/graphics/leocad/leocad.png diff --git a/graphics/leocad/slack-desc b/graphics/leocad/slack-desc new file mode 100644 index 0000000000..653d501b94 --- /dev/null +++ b/graphics/leocad/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' on +# the right side marks the last column you can put a character in. You must make +# exactly 11 lines for the formatting to be correct. It's also customary to +# leave one space after the ':'. + + |-----handy-ruler------------------------------------------------------| +leocad: leocad (CAD program for toy bricks) +leocad: +leocad: LeoCAD is a CAD program that uses bricks similar to those +leocad: found in many toys (but they don't represent any particular brand). +leocad: Currently it uses a library of more than 1000 different pieces. +leocad: +leocad: http://www.leocad.org/ +leocad: +leocad: +leocad: +leocad: |