From d7f10e9144a21e297eecc66c74369db29344c3d5 Mon Sep 17 00:00:00 2001 From: Fridrich von Stauffenberg Date: Sun, 12 Aug 2012 00:43:11 -0500 Subject: graphics/teighafileconverter: Added (DWG and DXF file converter) Signed-off-by: Robby Workman --- graphics/teighafileconverter/README | 2 + graphics/teighafileconverter/doinst.sh | 10 ++++ graphics/teighafileconverter/slack-desc | 19 ++++++ .../teighafileconverter.SlackBuild | 69 ++++++++++++++++++++++ .../teighafileconverter/teighafileconverter.info | 10 ++++ .../teighafileconverter/teighafileconverter.sh | 3 + 6 files changed, 113 insertions(+) create mode 100644 graphics/teighafileconverter/README create mode 100644 graphics/teighafileconverter/doinst.sh create mode 100644 graphics/teighafileconverter/slack-desc create mode 100644 graphics/teighafileconverter/teighafileconverter.SlackBuild create mode 100644 graphics/teighafileconverter/teighafileconverter.info create mode 100644 graphics/teighafileconverter/teighafileconverter.sh diff --git a/graphics/teighafileconverter/README b/graphics/teighafileconverter/README new file mode 100644 index 0000000000..3076592411 --- /dev/null +++ b/graphics/teighafileconverter/README @@ -0,0 +1,2 @@ +TeighaFileConverter is a free application that converts files between +the .dwg and .dxf file formats. diff --git a/graphics/teighafileconverter/doinst.sh b/graphics/teighafileconverter/doinst.sh new file mode 100644 index 0000000000..1f8ff67ded --- /dev/null +++ b/graphics/teighafileconverter/doinst.sh @@ -0,0 +1,10 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi + +if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then + if [ -x /usr/bin/gtk-update-icon-cache ]; then + /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi + diff --git a/graphics/teighafileconverter/slack-desc b/graphics/teighafileconverter/slack-desc new file mode 100644 index 0000000000..78475af51e --- /dev/null +++ b/graphics/teighafileconverter/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 ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +teighafileconverter: teighafileconverter (DWG and DXF file converter) +teighafileconverter: +teighafileconverter: TeighaFileConverter is a free application that converts files between +teighafileconverter: the .dwg and .dxf file formats. +teighafileconverter: +teighafileconverter: Homepage: http://www.opendesign.com/guestfiles/TeighaFileConverter +teighafileconverter: +teighafileconverter: +teighafileconverter: +teighafileconverter: +teighafileconverter: diff --git a/graphics/teighafileconverter/teighafileconverter.SlackBuild b/graphics/teighafileconverter/teighafileconverter.SlackBuild new file mode 100644 index 0000000000..958c5be519 --- /dev/null +++ b/graphics/teighafileconverter/teighafileconverter.SlackBuild @@ -0,0 +1,69 @@ +#!/bin/bash + +# Slackware build script for TeighaFileConverter + +# Copyright 2012 Fridrich von Stauffenberg +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +PRGNAM=teighafileconverter +VERSION=${VERSION:-3.6.0} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +ARCH=i386 + +ORIG_PRGNAM=TeighaFileConverter + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $PKG +ar xv $CWD/${PRGNAM}_${VERSION}_$ARCH.deb +tar xvf data.tar.gz +rm -f data.tar.gz control.tar.gz debian-binary +chown -R root:root . +find . -type d -exec chmod 755 {} \; +find . \! -name '*.so' \! -name '*.tx*' -type f -exec chmod 644 {} \; + +mkdir -p $PKG/usr/lib +mv $PKG/usr/bin/${ORIG_PRGNAM}_$VERSION $PKG/usr/lib/$ORIG_PRGNAM +cat $CWD/$PRGNAM.sh > $PKG/usr/bin/$ORIG_PRGNAM +chmod 755 $PKG/usr/bin/$ORIG_PRGNAM $PKG/usr/lib/$ORIG_PRGNAM/$ORIG_PRGNAM + +mv $PKG/usr/share/applications/${ORIG_PRGNAM}{_$VERSION,}.desktop +sed -i 's@/usr/bin/@@g' $PKG/usr/share/applications/$ORIG_PRGNAM.desktop + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +mv $PKG/usr/share/doc/$ORIG_PRGNAM/* $PKG/usr/doc/$PRGNAM-$VERSION +rm -rf $PKG/usr/share/doc +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/teighafileconverter/teighafileconverter.info b/graphics/teighafileconverter/teighafileconverter.info new file mode 100644 index 0000000000..3a97f50e3f --- /dev/null +++ b/graphics/teighafileconverter/teighafileconverter.info @@ -0,0 +1,10 @@ +PRGNAM="teighafileconverter" +VERSION="3.6.0" +HOMEPAGE="http://www.opendesign.com/guestfiles/TeighaFileConverter" +DOWNLOAD="http://www.opendesign.com/files/guestdownloads/TeighaFileConverter/teighafileconverter_3.6.0_i386.deb" +MD5SUM="3ee3eb7ec2af8a324d2f9560eba8e195" +DOWNLOAD_x86_64="UNTESTED" +MD5SUM_x86_64="" +MAINTAINER="Fridrich von Stauffenberg" +EMAIL="cancellor2@gmail.com" +APPROVED="rworkman" diff --git a/graphics/teighafileconverter/teighafileconverter.sh b/graphics/teighafileconverter/teighafileconverter.sh new file mode 100644 index 0000000000..e41e380d13 --- /dev/null +++ b/graphics/teighafileconverter/teighafileconverter.sh @@ -0,0 +1,3 @@ +#!/bin/sh +export LD_LIBRARY_PATH=/usr/lib/TeighaFileConverter:$LD_LIBRARY_PATH +exec /usr/lib/TeighaFileConverter/TeighaFileConverter "$@" -- cgit v1.2.3