blob: 04e58f64c8e603db48b34216e136d85ad6f907f6 (
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
53
54
55
56
57
58
|
# Maintainer: Kyle Keen <keenerd@gmail.com>
# Contributor: Earnestly
pkgname=antimony-git
pkgver=0.9.0b.r72.ge1117fe
pkgrel=1
pkgdesc="Graph-based 3D CSG CAD modeller"
url="http://www.mattkeeter.com/projects/antimony/3/"
provides=('antimony')
conflicts=('antimony')
arch=('i686' 'x86_64')
license=('MIT')
depends=('qt5-base' 'boost-libs' 'python' 'libpng' 'lemon')
makedepends=('boost' 'git')
source=("git+https://github.com/mkeeter/antimony.git")
md5sums=('SKIP')
# todo, replace bundled eigen with official
_gitname="antimony"
_gitbranch="master"
pkgver() {
cd "$_gitname"
#git show -s --format="%ci" HEAD | sed -e 's/-//g' -e 's/ .*//'
git describe | sed 's/-/.r/; s/-/./'
}
build() {
cd "$_gitname"
sed -i 's|\(executable.path =\).*|\1 /usr/bin|' app/app.pro
sed -i 's|\(nodes_folder.path =\).*|\1 /usr/share/antimony/sb/nodes|' app/app.pro
sed -i 's|\(fab_folder.path =\).*|\1 /usr/lib/python3.5/site-packages/fab|' app/app.pro
sed -i 's|return path.join("/");|return "/usr/share/antimony/sb/nodes";|' app/src/app/app.cpp
mkdir -p build
cd build
qmake-qt5 PREFIX="/usr" ../sb.pro
sed -i 's|/local/bin|/bin|g' Makefile
make
}
check() {
cd "$_gitname"
return 0
mkdir -p tests
cd tests
qmake-qt5 PREFIX="/usr" ../lib/fab/fab-tests.pro
qmake-qt5 PREFIX="/usr" ../lib/graph/graph-tests.pro
make
}
package() {
cd "$_gitname/build"
make INSTALL_ROOT="$pkgdir" install
install -Dm755 app/antimony "$pkgdir/usr/bin/antimony"
}
|