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

name=uvsquares
pkgname=blender-plugin-${name}-git
pkgver=r63.db80da3
pkgrel=3
pkgdesc="Blender addon for reshaping UV selection into grid."
arch=('any')
url="https://cgcookiemarkets.com/blender/all-products/uv-squares/"
license=('GPL')
depends=('blender')
makedepends=('git')
conflicts=('blender-plugin-uvsquares')
source=("${name}::git+https://github.com/Radivarig/UvSquares.git")
md5sums=('SKIP')

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

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

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