blob: d695d6672aee6dffce5a1c2c46107452d53ca22b (
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: Christoph Brill <aur at christophbrill.de>
pkgname=blender-dream-textures-git
pkgver=153.978e7b9
pkgrel=2
pkgdesc="Stable Diffusion built-in to Blender"
arch=('any')
url="https://github.com/carson-katri/dream-textures"
license=('GPL3')
depends=('blender' 'python')
makedepends=('git')
provides=('blender-dream-textures')
conflicts=('blender-dream-textures')
source=("$pkgname::git+https://github.com/carson-katri/dream-textures.git")
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/$pkgname"
echo $(git rev-list --count main).$(git rev-parse --short main)
}
package() {
_blenderver=$(blender --version | sed -E -n -e 's/.*([0-9]+\.[0-9]+)\.[0-9]+.*/\1/p')
_addondir="$pkgdir/usr/share/blender/$_blenderver/scripts/addons/dream_textures"
find $srcdir/$pkgname/ -mindepth 1 -type d -printf '%P\n' | while read dir;
do install -dm755 $_addondir/$dir
done
find $srcdir/$pkgname/ -type f -name '*.py' -printf '%P\n' | while read f;
do install -Dm644 $srcdir/$pkgname/$f $_addondir/$f
done
}
|