aboutsummaryrefslogtreecommitdiff
path: root/graphics/FreeCAD/FreeCAD.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/FreeCAD/FreeCAD.SlackBuild')
-rw-r--r--graphics/FreeCAD/FreeCAD.SlackBuild27
1 files changed, 20 insertions, 7 deletions
diff --git a/graphics/FreeCAD/FreeCAD.SlackBuild b/graphics/FreeCAD/FreeCAD.SlackBuild
index 786d067371549..3d860cf4ddc76 100644
--- a/graphics/FreeCAD/FreeCAD.SlackBuild
+++ b/graphics/FreeCAD/FreeCAD.SlackBuild
@@ -22,11 +22,11 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-# revision date: 2012/01/04
+# revision date: 2013/11/27
PRGNAM=FreeCAD
VERSION=${VERSION:-0.13.1830}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
SRCNAM=freecad
@@ -74,7 +74,7 @@ find -L . \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
# no downloads allowed during the build
-patch -p1 < $CWD/no_coin3d_docs.patch
+patch -p1 < $CWD/files/no_coin3d_docs.patch
# thanks to archlinux for these fixes
# compatibility issues with OCC-6.6
@@ -85,7 +85,7 @@ done
# these patch contain some code taken from upstream
# thanks to cbuehler
-patch -p1 -i $CWD/freecad-0.13.diff
+patch -p1 -i $CWD/files/freecad-0.13.diff
mkdir build
cd build
@@ -106,13 +106,26 @@ cd build
make install DESTDIR=$PKG
cd ..
+# build the qt plugin
+( cd src/Tools/plugins/widget
+ qmake plugin.pro
+ make
+ install -m 0755 -D libFreeCAD_widgets.so \
+ $PKG/usr/lib$LIBDIRSUFFIX/qt4/plugins/designer/libFreeCAD_widgets.so )
+
+# create links in /usr/bin
+mkdir -p $PKG/usr/bin
+ln -s /opt/FreeCAD/bin/FreeCADCmd $PKG/usr/bin/FreeCADCmd
+ln -s /opt/FreeCAD/bin/FreeCAD $PKG/usr/bin/FreeCAD
+
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-# Copy icon & desktop file
-mkdir -p $PKG/usr/share/applications $PKG/usr/share/pixmaps
+# Copy icon, desktop file and mime info
+mkdir -p $PKG/usr/share/applications $PKG/usr/share/pixmaps $PKG/usr/share/mime/packages
cp $PKG/opt/$PRGNAM/data/freecad.xpm $PKG/usr/share/pixmaps/
-cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop
+cat $CWD/files/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop
+cat $CWD/files/$PRGNAM.xml > $PKG/usr/share/mime/packages/$PRGNAM.xml
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \