diff options
author | Oscar Morante | 2018-09-03 17:20:39 +0300 |
---|---|---|
committer | Oscar Morante | 2018-09-03 17:20:39 +0300 |
commit | cb257bd7a2966c1ce718f86a1368272bc1c8c015 (patch) | |
tree | 3ea2ed9121ce03c34d9facb335ed7c7f7a0194e7 /PKGBUILD | |
parent | 76b30f842ad6c6442d01f78aa9b85f36536ea287 (diff) | |
download | aur-cb257bd7a2966c1ce718f86a1368272bc1c8c015.tar.gz |
update to new upstream version (2017.4.10f1)
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 42 |
1 files changed, 11 insertions, 31 deletions
@@ -1,48 +1,28 @@ -# Maintainer: Oscar Morante <spacepluk at gmail dot com> +# Maintainer: Oscar Morante <spacepluk@gmail.com> -_version=2017.4.9 +_version=2017.4.10 _build=f1 -_buildtag=20180816 -_randomstring=cc814e4d942d +_randomstring=f2cce2a5991f _prefix=/opt/UnityLts -_unitydownloads="http://beta.unity3d.com/download/${_randomstring}" -#_keepdownloads=yes pkgname=unity-editor-lts-standardassets -pkgver=${_version}${_build}+${_buildtag} +pkgver=${_version}${_build} pkgrel=1 pkgdesc="Unity Standard Assets for easily getting started building projects in Unity." arch=('x86_64') url='https://unity3d.com/' license=('custom') depends=('unity-editor-lts') -makedepends=('gtk2' 'libsoup' 'libarchive') -source=("${_unitydownloads}/UnitySetup-${_version}${_build}") -sha1sums=('6d4284af0002b3f06a6923649d57ffd045999756') +makedepends=('cpio') +source=("https://download.unity3d.com/download_unity/${_randomstring}/MacStandardAssetsInstaller/StandardAssets.pkg") +md5sums=('6116be0aa8efaaab286a0567396fe3bd') 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() { - extract-component StandardAssets - - if [ -z "${_keepdownloads}" ]; then - rm "${startdir}/StandardAssets.pkg" - fi + _dest="${pkgdir}/${_prefix}/Editor/Standard Assets" + install -d "${_dest}" + cd "${_dest}" + cat "${srcdir}/StandardAssets.pkg.tmp/Payload" | gzip -dc | cpio -i } |