summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1dd5c2c8d301ae5426eb8a679875a2665f6e2494 (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
# Maintainer : bartus <arch-user-repoᘓbartus.33mail.com>

name=polytrim

pkgname=blender-plugin-${name}
pkgver=r350.1d654b6
pkgrel=1
pkgdesc="Blender addon for triming and cutting a mesh over geodesic path."
arch=('any')
url="https://github.com/patmo141/cut_mesh"
license=('GPL')
depends=('blender')
makedepends=('git')
conflicts=("blender-plugin-${name}")
source=("${name}::git+${url}.git")
md5sums=('SKIP')

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

package() {
  _blender=$(pacman -Sddp --print-format %v blender|grep -oP '(?<=\:)[[:digit:]]+\.[[:digit:]]+(?=\.)')
  cd ${srcdir}
  addons="$pkgdir/usr/share/blender/${_blender}/scripts/addons"
  install -dm755 ${addons}/${name}
  cp -a ${name}/* ${addons}/${name}
}

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