[arch-commits] Commit in freecad/repos (10 files)
Florian Pritz
bluewind at archlinux.org
Thu Apr 23 10:38:55 UTC 2015
Date: Thursday, April 23, 2015 @ 12:38:55
Author: bluewind
Revision: 132046
archrelease: copy trunk to community-staging-i686, community-staging-x86_64
Added:
freecad/repos/community-staging-i686/
freecad/repos/community-staging-i686/PKGBUILD
(from rev 132045, freecad/trunk/PKGBUILD)
freecad/repos/community-staging-i686/freecad.desktop
(from rev 132045, freecad/trunk/freecad.desktop)
freecad/repos/community-staging-i686/freecad.install
(from rev 132045, freecad/trunk/freecad.install)
freecad/repos/community-staging-i686/freecad.xml
(from rev 132045, freecad/trunk/freecad.xml)
freecad/repos/community-staging-x86_64/
freecad/repos/community-staging-x86_64/PKGBUILD
(from rev 132045, freecad/trunk/PKGBUILD)
freecad/repos/community-staging-x86_64/freecad.desktop
(from rev 132045, freecad/trunk/freecad.desktop)
freecad/repos/community-staging-x86_64/freecad.install
(from rev 132045, freecad/trunk/freecad.install)
freecad/repos/community-staging-x86_64/freecad.xml
(from rev 132045, freecad/trunk/freecad.xml)
------------------------------------------+
community-staging-i686/PKGBUILD | 74 +++++++++++++++++++++++++++++
community-staging-i686/freecad.desktop | 14 +++++
community-staging-i686/freecad.install | 15 +++++
community-staging-x86_64/PKGBUILD | 74 +++++++++++++++++++++++++++++
community-staging-x86_64/freecad.desktop | 14 +++++
community-staging-x86_64/freecad.install | 15 +++++
6 files changed, 206 insertions(+)
Copied: freecad/repos/community-staging-i686/PKGBUILD (from rev 132045, freecad/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2015-04-23 10:38:55 UTC (rev 132046)
@@ -0,0 +1,74 @@
+# Maintainer: Florian Pritz <bluewind at xinu.at>
+# Contributor: Jonas Heinrich <onny at project-insanity.org>
+# Contributor: Jonas Heinrich <onny at project-insanity.org>
+# Contributor: Jordi De Groof <jordi (dot) degroof (at) gmail (dot) com>
+# Contributor: mickele
+# Contributor: manwithgrenade
+# Contributor: bricem13
+# Contributor: gborzi
+
+pkgname=freecad
+pkgver=0.15.4671
+pkgrel=2
+pkgdesc='A general purpose 3D CAD modeler'
+arch=('i686' 'x86_64')
+url='http://www.freecadweb.org/'
+license=('LGPL')
+depends=('boost-libs' 'curl' 'opencascade>=6.6.0' 'python2-pivy' 'xerces-c'
+ 'libspnav' 'shared-mime-info' 'hicolor-icon-theme'
+ 'python2-matplotlib' 'python2-shiboken' 'python2-pyside-tools' 'pyside-tools-common' 'qtwebkit')
+makedepends=('boost' 'eigen' 'gcc-fortran' 'swig' 'xerces-c' 'desktop-file-utils' 'cmake' 'coin>=3.1.3-9')
+# TODO add reasons
+optdepends=('python2-matplotlib' 'pycollada-git' 'python2-pyqt4')
+install=freecad.install
+source=("http://downloads.sourceforge.net/sourceforge/free-cad/freecad_${pkgver}.tar.gz"
+ "${pkgname}.desktop"
+ "${pkgname}.xml")
+md5sums=('4fe88e3647fe15e770e1b5c631424579'
+ '382cd66757dae635b53105d207679fce'
+ 'c2f4154c8e4678825411de8e7fa54c6b')
+
+prepare() {
+ sed -i \
+ -e "46i\\\tModDir = '/usr/share/freecad/Mod'" \
+ -e "50i\\\tLibDir = '/usr/lib/freecad'" \
+ "${srcdir}/freecad-${pkgver}/src/App/FreeCADInit.py"
+
+ sed -i \
+ -e 's|\bpyside-uic\b|python2-pyside-uic|' \
+ $srcdir/freecad-$pkgver/cMake/FindPySideTools.cmake
+}
+
+build() {
+ cd "${srcdir}/freecad-${pkgver}/"
+ cmake \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX:PATH="/usr" \
+ -DCMAKE_INSTALL_DOCDIR:PATH="share/freecad/doc" \
+ -DCMAKE_INSTALL_DATADIR:PATH="share/freecad" \
+ -DCMAKE_INSTALL_LIBDIR:PATH="lib/freecad" \
+ -DOCC_INCLUDE_DIR:PATH=/opt/opencascade/inc/ \
+ -DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/python2 \
+ -DFREECAD_USE_EXTERNAL_PIVY:BOOL=ON
+ make
+}
+
+package() {
+ cd "${srcdir}/freecad-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+
+ # Symlink to /usr/bin
+ ln -sf "FreeCAD" "${pkgdir}/usr/bin/freecad"
+ ln -sf "FreeCADCmd" "${pkgdir}/usr/bin/freecadcmd"
+
+ cp -ra "${pkgdir}/usr/Mod" "${pkgdir}/usr/share/freecad/"
+ rm -r "${pkgdir}/usr/Mod"
+
+ # Install pixmaps and desktop shortcut
+ desktop-file-install \
+ --dir="${pkgdir}/usr/share/applications" \
+ "${srcdir}/${pkgname}.desktop"
+
+ # Mime info
+ install -D -m644 "${srcdir}/${pkgname}.xml" "${pkgdir}/usr/share/mime/packages/${pkgname}.xml"
+}
Copied: freecad/repos/community-staging-i686/freecad.desktop (from rev 132045, freecad/trunk/freecad.desktop)
===================================================================
--- community-staging-i686/freecad.desktop (rev 0)
+++ community-staging-i686/freecad.desktop 2015-04-23 10:38:55 UTC (rev 132046)
@@ -0,0 +1,14 @@
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Name=FreeCAD
+Comment=A general purpose 3D CAD modeler
+GenericName=CAD Application
+Exec=/usr/bin/freecad %F
+Path=/usr/share/freecad
+Terminal=false
+Type=Application
+Icon=/usr/share/freecad/freecad.xpm
+Categories=Application;Science;Math;Education;
+StartupNotify=true
+MimeType=application/x-extension-fcstd;
Copied: freecad/repos/community-staging-i686/freecad.install (from rev 132045, freecad/trunk/freecad.install)
===================================================================
--- community-staging-i686/freecad.install (rev 0)
+++ community-staging-i686/freecad.install 2015-04-23 10:38:55 UTC (rev 132046)
@@ -0,0 +1,15 @@
+post_install() {
+ xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+ update-desktop-database -q
+ update-mime-database usr/share/mime
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+ update-desktop-database -q
+ update-mime-database usr/share/mime
+}
Copied: freecad/repos/community-staging-i686/freecad.xml (from rev 132045, freecad/trunk/freecad.xml)
===================================================================
(Binary files differ)
Copied: freecad/repos/community-staging-x86_64/PKGBUILD (from rev 132045, freecad/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2015-04-23 10:38:55 UTC (rev 132046)
@@ -0,0 +1,74 @@
+# Maintainer: Florian Pritz <bluewind at xinu.at>
+# Contributor: Jonas Heinrich <onny at project-insanity.org>
+# Contributor: Jonas Heinrich <onny at project-insanity.org>
+# Contributor: Jordi De Groof <jordi (dot) degroof (at) gmail (dot) com>
+# Contributor: mickele
+# Contributor: manwithgrenade
+# Contributor: bricem13
+# Contributor: gborzi
+
+pkgname=freecad
+pkgver=0.15.4671
+pkgrel=2
+pkgdesc='A general purpose 3D CAD modeler'
+arch=('i686' 'x86_64')
+url='http://www.freecadweb.org/'
+license=('LGPL')
+depends=('boost-libs' 'curl' 'opencascade>=6.6.0' 'python2-pivy' 'xerces-c'
+ 'libspnav' 'shared-mime-info' 'hicolor-icon-theme'
+ 'python2-matplotlib' 'python2-shiboken' 'python2-pyside-tools' 'pyside-tools-common' 'qtwebkit')
+makedepends=('boost' 'eigen' 'gcc-fortran' 'swig' 'xerces-c' 'desktop-file-utils' 'cmake' 'coin>=3.1.3-9')
+# TODO add reasons
+optdepends=('python2-matplotlib' 'pycollada-git' 'python2-pyqt4')
+install=freecad.install
+source=("http://downloads.sourceforge.net/sourceforge/free-cad/freecad_${pkgver}.tar.gz"
+ "${pkgname}.desktop"
+ "${pkgname}.xml")
+md5sums=('4fe88e3647fe15e770e1b5c631424579'
+ '382cd66757dae635b53105d207679fce'
+ 'c2f4154c8e4678825411de8e7fa54c6b')
+
+prepare() {
+ sed -i \
+ -e "46i\\\tModDir = '/usr/share/freecad/Mod'" \
+ -e "50i\\\tLibDir = '/usr/lib/freecad'" \
+ "${srcdir}/freecad-${pkgver}/src/App/FreeCADInit.py"
+
+ sed -i \
+ -e 's|\bpyside-uic\b|python2-pyside-uic|' \
+ $srcdir/freecad-$pkgver/cMake/FindPySideTools.cmake
+}
+
+build() {
+ cd "${srcdir}/freecad-${pkgver}/"
+ cmake \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX:PATH="/usr" \
+ -DCMAKE_INSTALL_DOCDIR:PATH="share/freecad/doc" \
+ -DCMAKE_INSTALL_DATADIR:PATH="share/freecad" \
+ -DCMAKE_INSTALL_LIBDIR:PATH="lib/freecad" \
+ -DOCC_INCLUDE_DIR:PATH=/opt/opencascade/inc/ \
+ -DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/python2 \
+ -DFREECAD_USE_EXTERNAL_PIVY:BOOL=ON
+ make
+}
+
+package() {
+ cd "${srcdir}/freecad-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+
+ # Symlink to /usr/bin
+ ln -sf "FreeCAD" "${pkgdir}/usr/bin/freecad"
+ ln -sf "FreeCADCmd" "${pkgdir}/usr/bin/freecadcmd"
+
+ cp -ra "${pkgdir}/usr/Mod" "${pkgdir}/usr/share/freecad/"
+ rm -r "${pkgdir}/usr/Mod"
+
+ # Install pixmaps and desktop shortcut
+ desktop-file-install \
+ --dir="${pkgdir}/usr/share/applications" \
+ "${srcdir}/${pkgname}.desktop"
+
+ # Mime info
+ install -D -m644 "${srcdir}/${pkgname}.xml" "${pkgdir}/usr/share/mime/packages/${pkgname}.xml"
+}
Copied: freecad/repos/community-staging-x86_64/freecad.desktop (from rev 132045, freecad/trunk/freecad.desktop)
===================================================================
--- community-staging-x86_64/freecad.desktop (rev 0)
+++ community-staging-x86_64/freecad.desktop 2015-04-23 10:38:55 UTC (rev 132046)
@@ -0,0 +1,14 @@
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Name=FreeCAD
+Comment=A general purpose 3D CAD modeler
+GenericName=CAD Application
+Exec=/usr/bin/freecad %F
+Path=/usr/share/freecad
+Terminal=false
+Type=Application
+Icon=/usr/share/freecad/freecad.xpm
+Categories=Application;Science;Math;Education;
+StartupNotify=true
+MimeType=application/x-extension-fcstd;
Copied: freecad/repos/community-staging-x86_64/freecad.install (from rev 132045, freecad/trunk/freecad.install)
===================================================================
--- community-staging-x86_64/freecad.install (rev 0)
+++ community-staging-x86_64/freecad.install 2015-04-23 10:38:55 UTC (rev 132046)
@@ -0,0 +1,15 @@
+post_install() {
+ xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+ update-desktop-database -q
+ update-mime-database usr/share/mime
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+ update-desktop-database -q
+ update-mime-database usr/share/mime
+}
Copied: freecad/repos/community-staging-x86_64/freecad.xml (from rev 132045, freecad/trunk/freecad.xml)
===================================================================
(Binary files differ)
More information about the arch-commits
mailing list