blob: ef01c9781c3c193e20f0d951ddc827b008a4d611 (
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
|
# Submitter: Fabien Devaux <fdev31@gmail.com>
# Maintainer : bartus <arch-user-repoᘓbartus.33mail.com>
name=retopoflow
pkgname=blender-plugin-${name}-git
pkgver=2.0.2.r172.g3d8b3a47
pkgrel=1
pkgdesc="A suite of retopology tools for Blender"
arch=('any')
url="https://blendermarket.com/products/retopoflow/"
license=('GPL')
depends=('blender')
makedepends=('git')
conflicts=('blender-plugin-retopoflow')
source=("git+https://github.com/CGCookie/retopoflow.git")
md5sums=('SKIP')
pkgver() {
cd ${name}
# cutting off 'v' prefix that presents in the git tag
git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
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 -r ${name}/* ${addons}/${name}
}
# vim:set ts=2 sw=2 et:
|