summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d076494a28789ccae48eccb1a04948f269d48e4c (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
# Maintainer: Nobbele <realnobbele@gmail.com>
# Contributor: Oscar Morante <oscar@mooistudios.com>
# Contributor: sinasio <synasius@gmail.com>
# Contributor: Marius Glo <marius@mgl.dev>

pkgname=unityhub
pkgver=3.7.0
pkgrel=1
pkgdesc="The Unity Hub is a standalone application that streamlines the way you find, download, and manage your Unity Projects and installations."
url="https://unity.com/"
arch=('x86_64')
license=('custom')
depends=('nss' 'gtk3' 'cpio' 'openssl-1.1')
optdepends=(
	'libappindicator-gtk3: The official deb says this an optional dependency'
	'gconf: Required by Unity 2019.4 or older'
	'libicu50: May fix issues related to empty compiler errors'
	'icu70: : May fix issues related to empty compiler errors'
)
source=(
	"$pkgname-$pkgver.deb::https://hub.unity3d.com/linux/repos/deb/pool/main/u/unity/unityhub_amd64/unityhub-amd64-${pkgver}.deb"
	'license.txt'
)
sha256sums=(
	'7051dc7e9b07483951f363ed67495e443a6f083ea7c3441d6f73ec60a327a2c0'
	'f0eb3a4bb148bb7f426e4f5b97e891265ac487710cbcba9282518537c7b5d833'
)
conflicts=('unityhub-beta')
OPTIONS=(!strip)
install='unityhub.install'

package() {
	tar -xf 'data.tar.bz2' -C "$pkgdir/"
	mkdir -p "$pkgdir/usr/bin"
	ln -sf '/opt/unityhub/unityhub' "$pkgdir/usr/bin/unityhub"

	install -Dm644 "$srcdir/license.txt" "$pkgdir/usr/share/licenses/$pkgname/license.txt"
}