blob: 6f9579ff7b8fef3e840271c70077cd6c01cc3306 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Maintainer: Paul Hentschel (hpmachining) <aur at hpminc dot com>
# Contributor: Justin R. St-Amant <jstamant24 at gmail dot com>
pkgname=camotics
pkgver=1.3.0
pkgrel=2
pkgdesc="3-axis NC machining simulation software"
arch=('x86_64')
url="https://camotics.org/"
license=('GPL2')
depends=(
'v8-r'
'qt5-websockets'
'cairo'
'desktop-file-utils'
)
makedepends=(
'scons'
'python-six'
'qt5-tools'
'cbang'
)
source=(
"$pkgname-$pkgver.tar.gz::https://github.com/CauldronDevelopmentLLC/$pkgname/archive/refs/tags/v$pkgver.tar.gz"
)
sha256sums=('d863781be2a5f4af8d9594e95cb6a752a67e034985dc522c7a95ddb4238150be')
prepare() {
cd "CAMotics-$pkgver"
}
build() {
cd "CAMotics-$pkgver"
CBANG_HOME=/opt/cbang scons cxxstd="c++20" linkflags="$LDFLAGS"
}
package() {
cd "CAMotics-$pkgver"
CBANG_HOME=/opt/cbang scons cxxstd="c++20" 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:
|