diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2013-11-27 15:51:33 +0100 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2013-11-28 00:13:12 -0600 |
commit | 1eb1a4df80681423d1c310b2974149316c11deea (patch) | |
tree | a10cf0982cbd2c58f2a3edd9e8073b4d435a4501 /graphics/FreeCAD/FreeCAD.SlackBuild | |
parent | c208cfd1469a906c97434320f98efa1701805bfb (diff) |
graphics/FreeCAD: Install the qt plugin.
eigen3 is an hard dependency, install mime info
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'graphics/FreeCAD/FreeCAD.SlackBuild')
-rw-r--r-- | graphics/FreeCAD/FreeCAD.SlackBuild | 27 |
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 \ |