summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5d9853ad3369bfd344726e89ec674cc3fefc656a (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
# maintained by: bartus szczepaniak <aur@bartus.33mail.com>

name=surface-follow
files=(ModelingCloth TextureHack.py UVShape.py)
pkgname=blender-plugin-${name}
pkgver=r18.a7e7e18
pkgrel=1
pkgdesc="Blender addon for binding object to deforming surfaces."
arch=('any')
url="https://blenderartists.org/forum/showthread.php?412706-Surface-Follow-from-2016-Blender-Conference"
license=('MIT')
depends=('blender')
makedepends=('git')
source=("${name}::git+https://github.com/the3dadvantage/BlenderSurfaceFollow.git")
md5sums=('SKIP')

pkgver() {
  cd ${name}
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  cd ${name}
  addons="$pkgdir/usr/share/blender/$(blender -v | head -n1 | cut -f2 -d ' ')/scripts/addons"
  install -d 755 ${addons}
  for file in  ${files[@]} ; do install -m 755 ${file} ${addons}/${file} ; done
  install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}

# vim:set ts=2 sw=2 et: