mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-04 20:29:09 +01:00
graphics/VariCAD: Added (3D/2D CAD system)
This commit is contained in:
parent
2d16978b3b
commit
118bd0f364
6 changed files with 120 additions and 0 deletions
7
graphics/VariCAD/README
Normal file
7
graphics/VariCAD/README
Normal file
|
@ -0,0 +1,7 @@
|
|||
VariCAD is a 3D/2D CAD system primarily intended for mechanical engineering
|
||||
design.
|
||||
|
||||
This installs the trial-version. A license-key must be obtained to use the
|
||||
program after the 30-day trial period.
|
||||
|
||||
This script builds a Slackware package from the official RPM's.
|
69
graphics/VariCAD/VariCAD.SlackBuild
Executable file
69
graphics/VariCAD/VariCAD.SlackBuild
Executable file
|
@ -0,0 +1,69 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Slackware build script for VariCAD
|
||||
# a 3D/2D CAD system for mechanical engineering
|
||||
|
||||
# Written by Niels Horn <niels.horn@gmail.com>
|
||||
# with inspiration from the OpenOffice.org SlackBuild, so thanks to Robby Workman :)
|
||||
# Revision date: 2010/04/23
|
||||
|
||||
PRGNAM=VariCAD
|
||||
VERSION=${VERSION:-2010_2.06}
|
||||
ARCH=${ARCH:-i486}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
# I haven't tested this, but there are other languages available for VariCAD
|
||||
SRCLANG=en
|
||||
|
||||
# The versioning of the 'source' RPM is a bit different:
|
||||
SRCVERSION=$(echo $VERSION | sed "s/_/-$SRCLANG-/")
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
if [ "$ARCH" = "i486" -o "$ARCH" = "i686" ]; then
|
||||
SRCARCH="i586"
|
||||
PKGARCH="i586"
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SRCARCH="x86_64"
|
||||
PKGARCH="$ARCH"
|
||||
fi
|
||||
|
||||
echo "SRCVERSION $SRCVERSION"
|
||||
echo "SRCARCH $SRCARCH"
|
||||
echo "PKGARCH $PKGARCH"
|
||||
|
||||
set -e
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
|
||||
# 'unpack' the RPM into the $PKG directory
|
||||
cd $PKG
|
||||
rpm2cpio < $CWD/${PRGNAM}_${SRCVERSION}-1.${SRCARCH}.rpm | cpio -imdv
|
||||
|
||||
# Put documentation in the right directory
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
mv $PKG/usr/share/doc/packages/${PRGNAM}_$(echo $VERSION | cut -f1 -d_)-$SRCLANG/* \
|
||||
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||
rm -r $PKG/usr/share
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
# Put .desktop & icon in right places
|
||||
mkdir -p $PKG/usr/share/{applications,pixmaps}
|
||||
cp $PKG/opt/$PRGNAM/desktop/varicad.xpm $PKG/usr/share/pixmaps/
|
||||
cp $PKG/opt/$PRGNAM/desktop/varicad.desktop $PKG/usr/share/applications/
|
||||
|
||||
mkdir -p $PKG/install
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||
|
||||
# Set the lib directory as a+w so that we do not need to enter the license as root:
|
||||
chmod a+w $PKG/opt/$PRGNAM/lib
|
||||
|
||||
cd $PKG
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$PKGARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
||||
|
11
graphics/VariCAD/VariCAD.desktop
Normal file
11
graphics/VariCAD/VariCAD.desktop
Normal file
|
@ -0,0 +1,11 @@
|
|||
[Desktop Entry]
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Name=FreeCAD
|
||||
Comment=General purpose 3D CAD modeler
|
||||
Categories=Graphics;
|
||||
Exec=/opt/FreeCAD/bin/FreeCAD
|
||||
Icon=FCIcon.xpm
|
||||
Terminal=false
|
||||
StartupNotify=false
|
||||
|
10
graphics/VariCAD/VariCAD.info
Normal file
10
graphics/VariCAD/VariCAD.info
Normal file
|
@ -0,0 +1,10 @@
|
|||
PRGNAM="VariCAD"
|
||||
VERSION="2010_2.06"
|
||||
HOMEPAGE="http://www.varicad.com"
|
||||
DOWNLOAD="http://www.varicad.com/userdata/files/release/en/VariCAD_2010-en-2.06-1.i586.rpm"
|
||||
MD5SUM="f9f49ec1ab74d008a3f2ca040c6db762"
|
||||
DOWNLOAD_x86_64="http://www.varicad.com/userdata/files/release/en/VariCAD_2010-en-2.06-1.x86_64.rpm"
|
||||
MD5SUM_x86_64="12197ba79a5acafc215e215f3b90f361"
|
||||
MAINTAINER="Niels Horn"
|
||||
EMAIL="niels.horn@gmail.com"
|
||||
APPROVED="dsomero"
|
4
graphics/VariCAD/doinst.sh
Normal file
4
graphics/VariCAD/doinst.sh
Normal file
|
@ -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
|
||||
|
19
graphics/VariCAD/slack-desc
Normal file
19
graphics/VariCAD/slack-desc
Normal file
|
@ -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------------------------------------------------------|
|
||||
VariCAD: VariCAD (3D/2D CAD system for mechanical engineering)
|
||||
VariCAD:
|
||||
VariCAD: VariCAD is a 3D/2D CAD system primarily intended for mechanical
|
||||
VariCAD: engineering design.
|
||||
VariCAD:
|
||||
VariCAD: This installs the trial-version. A license-key must be obtained to
|
||||
VariCAD: use the program after the 30-day trial period.
|
||||
VariCAD:
|
||||
VariCAD: Homepage: http://www.varicad.com/
|
||||
VariCAD:
|
||||
VariCAD:
|
Loading…
Reference in a new issue