blob: 464a5c24fa2e3e60bd0e06346ee9532892ed14e5 (
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
|
# maintained by: bartus szczepaniak <aur@bartus.33mail.com>
name=cubesurfer
version=1.0
#fragment="#commit=7e49329 "
files=(__init__.py mciso*.so mciso*.html)
pkgname=blender-plugin-${name}
pkgver=1.0_r22.1d6d9a6
pkgrel=1
pkgdesc="IsoSurface mesher addons for Blender ( wrote in Cython )"
arch=(i686 x86_64)
url="http://pyroevil.com/category/scripts-addons/cubesurfece/"
license=('GPL')
depends=(blender)
makedepends=(git cython)
source=("${name}::git+https://github.com/Pyroevil/CubeSurfer.git${fragment}")
md5sums=('SKIP')
pkgver() {
cd ${name}
printf "${version}_r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd ${name}
sed -i "s|/O2|-O2|" setup64.py
sed -i "s|/openmp|-fopenmp|" setup64.py
sed -i "s|/fp:fast|-ffast-math|" setup64.py
python setup64.py build_ext --inplace
cp mciso*.so mciso*.html -t ../
}
package() {
cd ${name}
addons="$pkgdir/usr/share/blender/$(blender -v | head -n1 | cut -f2 -d ' ')/scripts/addons"
install -dm755 ${addons}/${name}
for file in ${files[@]} ; do install -m644 ${file} ${addons}/${name}; done
}
# vim:set ts=2 sw=2 et:
|