Date: Monday, March 10, 2014 @ 01:35:06 Author: kkeen Revision: 106906
upgpkg: openscad 2014.03-1 Added: openscad/trunk/openscad.install Modified: openscad/trunk/CHANGELOG openscad/trunk/PKGBUILD ------------------+ CHANGELOG | 6 ++++++ PKGBUILD | 23 ++++++++++++++++------- openscad.install | 13 +++++++++++++ 3 files changed, 35 insertions(+), 7 deletions(-) Modified: CHANGELOG =================================================================== --- CHANGELOG 2014-03-09 21:01:09 UTC (rev 106905) +++ CHANGELOG 2014-03-10 00:35:06 UTC (rev 106906) @@ -1,3 +1,9 @@ +2014-03-09 Kyle Keen <keen...@gmail.com> + + * 2014.04-1 + - New release + - MIME associations + 2014-02-10 Kyle Keen <keen...@gmail.com> * 2013.06-3 Modified: PKGBUILD =================================================================== --- PKGBUILD 2014-03-09 21:01:09 UTC (rev 106905) +++ PKGBUILD 2014-03-10 00:35:06 UTC (rev 106906) @@ -4,28 +4,37 @@ # Contributor: Eric Anderson <ejona86 at gmail.com> # Contributor: Pierre DOUCET <pierre at equinoxefr.org> pkgname=openscad -pkgver=2013.06 -pkgrel=3 -pkgdesc="The programmers' solid 3D CAD modeller" +pkgver=2014.03 +pkgrel=1 +pkgdesc="The programmers solid 3D CAD modeller" url="http://openscad.org/" arch=('i686' 'x86_64') license=('GPL2') +install=openscad.install changelog=CHANGELOG -depends=('qt4' 'cgal' 'opencsg' 'boost-libs') +depends=('qt4' 'cgal' 'opencsg' 'boost-libs' 'shared-mime-info') makedepends=('eigen' 'boost' 'imagemagick') -source=("https://openscad.googlecode.com/files/$pkgname-$pkgver.src.tar.gz") -md5sums=('b7b5faecdffc41e28cdf0c1162299de7') +source=("http://files.openscad.org/openscad-$pkgver.src.tar.gz") +md5sums=('38bebd02bce365fe39e695a07411ab73') build() { cd "$srcdir/$pkgname-$pkgver" - qmake-qt4 PREFIX="/usr" + rm -f libraries/MCAD/*.py + # internal version will use the build date, override that + qmake-qt4 PREFIX="/usr" VERSION="$pkgver" make convert "icons/$pkgname.png" -resize 128x128\> "icons/$pkgname-128.png" } +# it has tests +# tests need cmake, python, imagemagick +# see doc/testing.txt about enabling +# needs to display stuff, run image diffs + package() { cd "$srcdir/$pkgname-$pkgver" make INSTALL_ROOT="$pkgdir" install install -Dm644 "icons/$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop" install -Dm644 "icons/$pkgname-128.png" "$pkgdir/usr/share/pixmaps/$pkgname.png" + install -Dm644 "icons/$pkgname.xml" "$pkgdir/usr/share/mime/packages/$pkgname.xml" } Added: openscad.install =================================================================== --- openscad.install (rev 0) +++ openscad.install 2014-03-10 00:35:06 UTC (rev 106906) @@ -0,0 +1,13 @@ +post_install() { + update-desktop-database -q + update-mime-database usr/share/mime &> /dev/null + xdg-icon-resource forceupdate --theme hicolor &> /dev/null +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +}