blob: 9466a9b4a1cbd851e011ea10ad3a73eaa2f19c53 (
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
|
# Maintainer : bartus <arch-user-repoᘓbartus.33mail.com>
# shellcheck disable=SC2034,SC2154,SC2164
_name=molecular
_version=1.1.1
_fragment="#tag=${_version}"
_files=(descriptions.py __init__.py names.py operators.py properties.py simulate.py ui.py utils.py core*.so core.html)
pkgname=blender-plugin-${_name}
pkgver=1.1.1_r249.e4ef6a2
pkgrel=2
pkgdesc="Blender addon for advance particle physics, multithreaded."
arch=(i686 x86_64)
url="https://github.com/bartoszek/Blender-Molecular-Script.git"
license=('GPL')
makedepends=(git cython)
source=("${_name}::git+${url}${_fragment}")
md5sums=('SKIP')
pkgver() {
cd ${_name}
printf "${_version}_r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd ${_name}/sources/
sed -e "s/'-march=i686',//;s/\(core_3\)8/\19/;s/\(minor == \)8/\19/" -i setup.py
python setup.py build_ext --inplace
cp core*.so core.html -t ../${_name}
}
package() {
depends=('blender>=2.80')
_blender=$(pacman -Sddp --print-format %v blender|grep -oP '(?<=\:)[[:digit:]]{1}\.[[:digit:]]{2}(?=[.-])')
cd ${_name}
addons="$pkgdir/usr/share/blender/${_blender}/scripts/addons"
install -dm755 "${addons}/${_name}"
for file in "${_files[@]}"; do eval install -m644 "${_name}/${file}" "${addons}/${_name}"; done
}
# vim:set ts=2 sw=2 et:
|