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

_name=blenderseed
_blender=$(pacman -Sddp --print-format %v blender|grep -oP '(?<=\:)[[:digit:]]{1}\.[[:digit:]]{2}(?=\.)')
#version=1.3.0
#fragment="#commit=7e49329 "
_files=(__init__.py operators.py panel.py preferences.py utils.py)
pkgname=blender-plugin-${_name}-git
pkgver=1.0.0.beta.r80.gd5b86f5
pkgrel=1
pkgdesc="appleseed Blender integrator"
arch=('any')
url="https://github.com/appleseedhq/blenderseed"
license=('MIT')
depends=('blender' 'appleseed-git')
makedepends=('git')
source=("${_name}::git+https://github.com/appleseedhq/blenderseed.git${fragment}")
md5sums=('SKIP')

pkgver() {
  cd ${_name}
  #printf "${version}_r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
  cd ${_name}
  addons="$pkgdir/usr/share/blender/${_blender}/scripts/addons"
  install -dm755 ${addons}/${_name}
  cp -ar * ${addons}/${_name}
#  for file in  ${_files[@]} ; do install -m 755 ${file} ${addons}/${_name}/${file} ; done
  install -Dm644 LICENSE.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}

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