summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fcc65e4a322a375657449478adc042ecbaa979f8 (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
# Maintainer: bartus <szczepaniak.bartek+aur@gmail.com>
# original maintainer : Fabien Devaux <fdev31@gmail.com>

pkgname=blender-plugin-miratools
pkgver=r610.33d831c # commit-num.commit-hash 
pkgrel=1
pkgdesc="Modern modeling and retopology tools"
url="https://github.com/mifth/mifthtools/wiki/Mira-Tools"
license=("GPL")
arch=('any')
depends=('blender')
groups=('blender')
makedepends=('git')
source=("${pkgname}::git+https://github.com/mifth/mifthtools.git")
md5sums=('SKIP')

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

package() {
  addons="$pkgdir/usr/share/blender/$(blender -v | head -n1 | cut -f2 -d ' ')/scripts/addons/"
  install -dm755 ${addons}/${name}
  cp -a ${srcdir}/${pkgname}/blender/addons/* ${addons}/${name}
}