blob: 9141937f328aedde32a43506451fba7b5a47b1a6 (
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
67
68
69
70
71
72
73
74
75
76
77
|
# Maintainer: HurricanePootis <hurricanepootis@protonmail.com>
pkgname=blender-bin
pkgver=4.2.1
pkgrel=1
pkgdesc="A fully integrated 3D graphics creation suite (with packaged libraries and python3.11)"
arch=('x86_64')
url="https://blender.org"
license=(
Apache-2.0
BSD-2-Clause
BSD-3-Clause
GPL-2.0-or-later
GPL-3.0-or-later
LGPL-2.1-or-later
MIT
MPL-2.0
Zlib
)
makedepends=('rsync')
depends=('glibc' 'bash' 'hicolor-icon-theme'
'libxkbcommon'
'libxi'
'libglvnd'
'libxt'
'libxfixes'
'libxxf86vm'
'level-zero-loader'
'libsm'
'libice'
'mesa'
'libxcrypt-compat'
'libxext'
'zstd'
'libxrender'
'libxcb'
'util-linux-libs'
'libdrm'
'ncurses'
'libx11'
'gcc-libs'
'zlib')
optdepends=('cuda: Cycles renderer CUDA support'
'intel-compute-runtime: Cycles renderer Intel OneAPI support'
'libdecor: wayland support'
'rocm-hip-runtime: HIP renderer AMD support')
provides=('blender')
conflicts=('blender')
install=$pkgname.install
source=("https://download.blender.org/release/Blender${pkgver:0:3}/blender-${pkgver}-linux-x64.tar.xz")
sha256sums=('be0fbaa0c1e52d4552023220b4c67351efbb707cac49bb381fcbee2182447005')
validpgpkeys=()
package() {
cd "$srcdir/blender-$pkgver-linux-x64"
mkdir -p "${pkgdir}/usr/lib/${pkgname}/"
install -Dm755 {blender,blender-thumbnailer} "${pkgdir}/usr/lib/blender-bin/"
install -Dm644 blender-symbolic.svg "${pkgdir}/usr/share/icons/hicolor/symbolic/apps/blender-symbolic.svg"
install -Dm644 blender.svg "${pkgdir}/usr/share/icons/hicolor/scalable/apps/blender.svg"
install -Dm644 copyright.txt "${pkgdir}/usr/share/licenses/$pkgname/copyright.txt"
install -Dm644 readme.html "${pkgdir}/usr/share/doc/$pkgname/readme.html"
install -Dm644 blender.desktop "${pkgdir}/usr/share/applications/blender.desktop"
rsync -a -r "${pkgver:0:3}" {lib,textures,usd} "${pkgdir}/usr/lib/${pkgname}"
rsync -a -r license/* "${pkgdir}/usr/share/licenses/${pkgname}/"
cd "${pkgdir}/usr/lib/${pkgname}/lib"
for file in *.so*;
do
chmod 755 "$file"
done
cd "$srcdir/blender-$pkgver-linux-x64"
install -Dm755 blender-launcher "$pkgdir/usr/bin/blender"
install -Dm755 blender-softwaregl "$pkgdir/usr/bin/blender-softwaregl"
ln -s "/usr/lib/$pkgname/blender-thumbnailer" "$pkgdir/usr/bin/blender-thumbnailer"
sed -i 's/\$(dirname \$(readlink -f "\$0"))/\/usr\/lib\/blender-bin/g' "$pkgdir/usr/bin/blender"
sed -i 's/BF_DIST_BIN=\$(dirname "\$0")/BF_DIST_BIN=\/usr\/lib\/blender-bin/g' "$pkgdir/usr/bin/blender-softwaregl"
}
|