diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 27 |
1 files changed, 11 insertions, 16 deletions
@@ -1,14 +1,14 @@ # Maintainer: Paul Hentschel <aur at hpminc dot com> pkgname=camotics-git -pkgver=r829.a1bc453 +pkgver=r1012.8a867d3 pkgrel=1 pkgdesc="3-axis NC machining simulation software" arch=('x86_64') url="http://camotics.org/" license=('GPL2') depends=( - 'v8-6.8' + 'v8-r' 'qt5-websockets' 'cairo' 'desktop-file-utils' @@ -16,16 +16,18 @@ depends=( makedepends=( 'git' 'scons' - 'python2-six' + 'python-six' 'qt5-tools' 'cbang-git' ) provides=('camotics') conflicts=('camotics') +_commit="master" source=( - "${pkgname%-*}::git+https://github.com/CauldronDevelopmentLLC/CAMotics.git" + "${pkgname%-*}::git+https://github.com/CauldronDevelopmentLLC/CAMotics.git#commit=$_commit" ) sha256sums=('SKIP') +options=('!lto') pkgver() { cd "${pkgname%-*}" @@ -34,22 +36,15 @@ pkgver() { build() { cd "${pkgname%-*}" - CBANG_HOME=/opt/cbang scons linkflags=$LDFLAGS + mkdir -p build + CBANG_HOME=/opt/cbang scons cxxstd="c++17" linkflags=$LDFLAGS } package() { cd "${pkgname%-*}" - CBANG_HOME=/opt/cbang scons install install_prefix="$pkgdir/usr" linkflags=$LDFLAGS - - install -d "$pkgdir/usr/share/${pkgname%-*}"/tpl_lib - cp -a tpl_lib/ "$pkgdir/usr/share/${pkgname%-*}" - install -Dm644 -t "$pkgdir"/usr/share/applications CAMotics.desktop - install -Dm644 -t "$pkgdir"/usr/share/pixmaps images/camotics.png - install -Dm644 -t "$pkgdir/usr/share/doc/${pkgname%-*}" README.md CHANGELOG.md COPYING LICENSE - - # install examples and machines - install -d "$pkgdir/usr/share/doc/${pkgname%-*}"/{examples,machines} - cp -a {examples/,machines/} "$pkgdir/usr/share/doc/${pkgname%-*}" + CBANG_HOME=/opt/cbang scons install cxxstd="c++17" install_prefix="$pkgdir/usr" + local site_packages=$(python -c "import site; print(site.getsitepackages()[0])") + install build/camotics.so -D "$pkgdir/$site_packages/camotics.so" } # vim:set ts=2 sw=2 et: |