blob: 5e1c17c400ea03949f1055162810020a14eb93ab (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# Maintainer: Daniil Gentili <daniil@daniil.it>
_pkgname=BlendNet
pkgname=blendnet
pkgdesc="Distribute your Blender renders (with CUDA CPU+GPU support!)"
pkgver=0.3.11
pkgrel=1
url="https://github.com/state-of-the-art/BlendNet"
arch=('any')
license=('Apache')
depends=('blender')
source=(
"https://github.com/state-of-the-art/$pkgname/archive/refs/tags/v${pkgver}.tar.gz"
"agent.json"
"${pkgname}-validate"
"${pkgname}-agent.service"
"${pkgname}-manager.service"
"${pkgname}.sysusers"
"${pkgname}.tmpfiles"
"${pkgname}.install"
"cuda.patch"
"manager.json"
)
sha512sums=('5bcacfe88d7855b3d29527dc36e0e9056ad3dfcd369122e87806baf52365670b430c3d34d0b08e237d137559ea2abe117493f91fb365e4c75432f5ebc84ae76e'
'27129424d46a54ee86bf4d614600cfe6cb302ebce8dd54625d7cb0a443c65696d6629e93d943ec686705211dece022e852cd949600e6618d1c532f6b607b92a4'
'3b042688735bbd1aa883605030fbfa490ddb139ba00f1cfad716f24c29de437763a5529a240192e16137752be5fc57bffb19b7d615fcf34ec599bec6a9bdb682'
'2e24f9e56d940d24250ff47e6c9deffedb425f3ea6f82d55cac2dd19afe164d55bcc91073c888e902ef2b4f92717432c00a6eac492612c4279a5d5adb663f607'
'e0f30502e415276f559df393597f856e688ea283e5a5234a68ac269bbe1afd5a0283c978c0e9ce97ea010ecc3ca1433dcaca752f62ffb68c8f650a706aa0faa0'
'20e7efd2156bf61272b36d4b3bd1c1a53632f7c6c9500c3b5bf4afb557b55cba118bceab35a51f7257ba12d7a7c0db2cda0dc32e66e0d8c27d904ce4fca5ccbf'
'e4943047b1e3e22ab77f7d464ffaef70c4864adc5e17583daf5932282334fe1d329d0f8b6bf0ba95ba3c97c3e867f7c921648e1200c6935a2b4c9ca7c9c0a0aa'
'0d8c078dfc80739aa2401a537646fe529fdaf3401785ef6776beedebcd67201c6d9c58772036fb065ffa3c08ed9f50ce084ab999a866572c1f35d926f29a4cde'
'd045be0b99899a0b4ad955ace2f4242522d051acd47e570cef2059f5449c2c9e15b70f4076f0145c545ddea2c4b0a22731f6e61c907f08ccacc4266f888147d2'
'946bd9bfb21ccd3e8cbbfff4a26aa5533046c32683a1689611f774ca8f23ac1428de095b68c3814a6c54e9adee9c89300ca7b2680392a323ebbc8fd3026739d3')
install="${pkgname}.install"
backup=(
etc/${pkgname}/agent.json
etc/${pkgname}/manager.json
)
prepare() {
_blender=$(blender -v | head -n1 | cut -f2 -d ' ' | sed 's/\.0$//')
sed "s:/usr/share/blender/%v/:/usr/share/blender/$_blender/:g" -i *.service
cd "${_pkgname}-${pkgver}"
patch -Np1 -i ${srcdir}/cuda.patch
}
package() {
_blender=$(blender -v | head -n1 | cut -f2 -d ' ' | sed 's/\.0$//')
cd ${srcdir}
addons="$pkgdir/usr/share/blender/${_blender}/scripts/addons"
install -dm755 ${addons}/${pkgname}
cp -a -t ${addons}/${pkgname} ${_pkgname}-${pkgver}/*
install -Dm755 ${pkgname}-validate -t ${addons}/${pkgname}/
install -Dm644 "${_pkgname}-${pkgver}/LICENSE" -t "${pkgdir}"/usr/share/licenses/${pkgname}/
install -Dm644 ${pkgname}-manager.service -t "${pkgdir}"/usr/lib/systemd/system/
install -Dm644 ${pkgname}-agent.service -t "${pkgdir}"/usr/lib/systemd/system/
install -Dm644 ${pkgname}.tmpfiles "${pkgdir}"/usr/lib/tmpfiles.d/${pkgname}.conf
install -Dm644 ${pkgname}.sysusers "${pkgdir}"/usr/lib/sysusers.d/${pkgname}.conf
install -Dm644 manager.json "${pkgdir}"/etc/${pkgname}/manager.json
install -Dm644 agent.json "${pkgdir}"/etc/${pkgname}/agent.json
}
|