blob: e60f319b8e84afd34bfaf547f9438794eeccacad (
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
|
# Maintainer: Oscar Morante <spacepluk at gmail dot com>
_version=2018.1.5
_build=f1
_buildtag=20180621
_randomstring=2e0fa9ec2214
_prefix=/opt/Unity
_unitydownloads="http://beta.unity3d.com/download/${_randomstring}"
#_keepsources=yes
pkgname=unity-editor-doc
pkgver=${_version}${_build}+${_buildtag}
pkgrel=1
pkgdesc="Unity User Manual and Scripting API Reference."
arch=('x86_64')
url='https://unity3d.com/'
license=('custom')
depends=('unity-editor')
makedepends=('gtk2' 'libsoup' 'libarchive')
source=("${_unitydownloads}/UnitySetup-${_version}${_build}")
sha1sums=('e8a2dafd1670769a85897f4addd122fa22c4019a')
options=(!strip)
PKGEXT='.pkg.tar' # Prevent compressing of the final package
unity-setup() {
./UnitySetup-${_version}${_build} \
--download-location="${startdir}" \
--install-location="${pkgdir}${_prefix}" \
--unattended $@
}
extract-component() {
msg2 "Extracting $1..."
yes | unity-setup --components=$1 > "/tmp/$1.log"
}
prepare() {
chmod +x "${srcdir}/UnitySetup-${_version}${_build}"
}
package() {
mkdir -p "${pkgdir}${_prefix}"
extract-component Documentation
if [ -z "${_keepsources}" ]; then
rm "${startdir}/Documentation.pkg"
fi
}
|