summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Hentschel (hpmachining)2019-04-20 13:08:43 -0400
committerPaul Hentschel (hpmachining)2019-04-20 13:35:33 -0400
commit44b54036e58b34495dacec8d7302fe2e5b26c5cd (patch)
tree0203ba66e279b3f91319379d4c737335c3aad311
parentc3cc0b8a820d5456c6f99af6421e84150be0f0c8 (diff)
downloadaur-44b54036e58b34495dacec8d7302fe2e5b26c5cd.tar.gz
Initial commit - camotics-git
Restored previously deleted camotics-git package with new version.
-rw-r--r--.SRCINFO36
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD79
-rw-r--r--camotics.desktop10
4 files changed, 62 insertions, 67 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 9aa00403fce..9add69cf5f3 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,35 +1,23 @@
-# Generated by mksrcinfo v8
-# Thu Feb 9 01:11:51 UTC 2017
pkgbase = camotics-git
- pkgdesc = 3-axis NC machining simulation software
- pkgver = 1.1.0.r0.g9460571
+ pkgdesc = Open-Source Simulation & Computer Aided Machining
+ pkgver = r822.8d1c8fb
pkgrel = 1
url = http://camotics.org/
- arch = i686
arch = x86_64
license = GPL2
- makedepends = boost
- makedepends = cbang-git
- makedepends = chakracore-cauldron-git
+ makedepends = git
makedepends = scons
- depends = bzip2
+ makedepends = python2-six
+ makedepends = qt5-tools
+ makedepends = cbang-git
+ depends = v8-3.14
+ depends = qt5-websockets
depends = cairo
- depends = expat
- depends = glu
- depends = libffi
- depends = libgl
- depends = libmariadbclient
- depends = libunwind
- depends = openssl
- depends = qt4
- depends = sqlite
- depends = zlib
+ depends = desktop-file-utils
provides = camotics
- replaces = openscam
- source = camotics-git::git+https://github.com/CauldronDevelopmentLLC/CAMotics.git
- source = camotics.desktop
- md5sums = SKIP
- md5sums = bca9df64570c6c6e6773e8428e27cfb8
+ conflicts = camotics
+ source = camotics::git+https://github.com/CauldronDevelopmentLLC/CAMotics.git
+ sha256sums = SKIP
pkgname = camotics-git
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..018a3de0814
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+*
+!PKGBUILD
+!.SRCINFO
+!.gitignore
diff --git a/PKGBUILD b/PKGBUILD
index 116e7159c1f..8cc402544f4 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,47 +1,60 @@
-# Maintainer: Justin R. St-Amant <jstamant24 at gmail dot com>
+# Maintainer: Paul Hentschel <aur at hpminc dot com>
+
pkgname=camotics-git
-pkgver=1.1.0.r0.g9460571
+pkgver=r822.8d1c8fb
pkgrel=1
-pkgdesc="3-axis NC machining simulation software"
-arch=('i686' 'x86_64')
+pkgdesc="Open-Source Simulation & Computer Aided Machining"
+arch=('x86_64')
url="http://camotics.org/"
license=('GPL2')
-depends=('bzip2'
- 'cairo'
- 'expat'
- 'glu'
- 'libffi'
- 'libgl'
- 'libmariadbclient'
- 'libunwind'
- 'openssl'
- 'qt4'
- 'sqlite'
- 'zlib')
-makedepends=('boost' 'cbang-git' 'chakracore-cauldron-git' 'scons')
+depends=(
+ 'v8-3.14'
+ 'qt5-websockets'
+ 'cairo'
+ 'desktop-file-utils'
+)
+makedepends=(
+ 'git'
+ 'scons'
+ 'python2-six'
+ 'qt5-tools'
+ 'cbang-git'
+)
provides=('camotics')
-replaces=('openscam')
-source=("$pkgname::git+https://github.com/CauldronDevelopmentLLC/CAMotics.git"
- "camotics.desktop")
-md5sums=('SKIP' 'bca9df64570c6c6e6773e8428e27cfb8')
+conflicts=('camotics')
+source=(
+ "${pkgname%-*}::git+https://github.com/CauldronDevelopmentLLC/CAMotics.git"
+)
+sha256sums=('SKIP')
pkgver() {
- cd "$srcdir/$pkgname"
- git describe --long --tags | sed 's/-debug-/.r/;s/-/./'
+ cd "${pkgname%-*}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ cd "${pkgname%-*}"
+ sed -i '24 i env.Append(LINKFLAGS = os.environ.get("LDFLAGS"))' SConstruct
}
build() {
- cd "$srcdir/$pkgname"
- export CHAKRA_CORE_HOME=/opt/chakracore-cauldron-git
- export CBANG_HOME=/opt/cbang-git
- scons qt_version=4
+ cd "${pkgname%-*}"
+ CBANG_HOME=/opt/cbang scons
}
package() {
- cd "$srcdir"
- install -Dm644 "camotics.desktop" \
- "$pkgdir/usr/share/applications/camotics.desktop"
- cd "$srcdir/$pkgname"
- install -Dm644 "images/camotics.png" "$pkgdir/usr/share/pixmaps/camotics.png"
- scons install compiler=gnu install_prefix="$pkgdir/usr" qt_version=4
+ cd "${pkgname%-*}"
+ CBANG_HOME=/opt/cbang scons install install_prefix="$pkgdir/usr"
+
+ 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%-*}"
}
+
+# vim:set ts=2 sw=2 et:
diff --git a/camotics.desktop b/camotics.desktop
deleted file mode 100644
index cb195aad5d6..00000000000
--- a/camotics.desktop
+++ /dev/null
@@ -1,10 +0,0 @@
-[Desktop Entry]
-Encoding=UTF-8
-Type=Application
-Name=CAMotics
-Comment=3-axis NC machining simulation software
-Exec=camotics
-Icon=camotics
-Terminal=false
-StartupNotify=false
-Categories=Application;Education;Engineering;