summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fee5c37605f4ae64a569a9655f78d450687d642e (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
# Maintainer: Sulthan A. Karimov <sulthankarimov@gmail.com>
pkgname='blender-launcher-git'
_pkgname='blenderlauncher'
_pkgname1='Blender-Launcher-V2'
pkgver=v2.2.0.rc.1.r7.ga3fa734
pkgtarget='_Linux_x64'
pkgrel=1
pkgdesc='Blender Launcher is a standalone software client that provides management for stable, daily and experimental builds of Blender 3D. It is a free open source project available for 64-bit Windows and Linux (GLIBC 2.31 and higher) operating systems.'
arch=('x86_64')
url='https://github.com/Victor-IX/Blender-Launcher-V2.git'
license=('GPL-3.0')
depends=('yay')
makedepends=('python-pdm-backend')
conflicts=('blender-launcher-bin')
source=("git+$url")
sha256sums=('SKIP')

pkgver() {
	cd $srcdir/$_pkgname1/
	git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
	yay -S --asdeps --noconfirm python39
	cd $srcdir/$_pkgname1/
	python3.9 -m venv lib
	source lib/bin/activate
	pip install --upgrade pdm
	pdm use lib/bin/python
	pdm venv activate
	pip install -e .
	python build_style.py
	cd scripts
	sh build_linux.sh
}

package() {
	install -Dm644 "$srcdir/$_pkgname1/extras/$_pkgname.desktop" "$pkgdir/usr/share/applications/$_pkgname.desktop"
	install -Dm755 "$srcdir/$_pkgname1/dist/release/Blender Launcher" "$pkgdir/usr/bin/$_pkgname"
	install -Dm644 "$srcdir/$_pkgname1/source/resources/icons/bl/bl_128.png" "$pkgdir/usr/share/pixmaps/blenderlauncher.png"
	#install -Dm755 "$srcdir/$_pkgname1/dist/release/Blender Launcher" "$pkgdir$HOME/.local/bin/$_pkgname"
}