summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorOscar Morante2018-09-03 17:20:35 +0300
committerOscar Morante2018-09-03 17:20:35 +0300
commit5d0369599381706c5cd81c7ad819ad1221146a3c (patch)
treeaa670e2e4aca172d80abe74e4d013531c73c0daf
parent230cec6111b95eae1888ae1f618f296bdd6c45dd (diff)
downloadaur-5d0369599381706c5cd81c7ad819ad1221146a3c.tar.gz
update to new upstream version (2017.4.10f1)
-rw-r--r--.SRCINFO10
-rw-r--r--PKGBUILD43
2 files changed, 15 insertions, 38 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 02684fa4e38..9bcd711ab79 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,17 +1,15 @@
pkgbase = unity-editor-lts-example
pkgdesc = Unity Example Project based on Standard Assets.
- pkgver = 2017.4.9f1+20180816
+ pkgver = 2017.4.10f1
pkgrel = 1
url = https://unity3d.com/
arch = x86_64
license = custom
- makedepends = gtk2
- makedepends = libsoup
- makedepends = libarchive
+ makedepends = cpio
depends = unity-editor-lts
options = !strip
- source = http://beta.unity3d.com/download/cc814e4d942d/UnitySetup-2017.4.9f1
- sha1sums = 6d4284af0002b3f06a6923649d57ffd045999756
+ source = https://download.unity3d.com/download_unity/f2cce2a5991f/MacExampleProjectInstaller/Examples.pkg
+ md5sums = 12f6a2570908fddece70e2d1dc831fc3
pkgname = unity-editor-lts-example
diff --git a/PKGBUILD b/PKGBUILD
index d490ffaab4d..5810b2a3f8c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,49 +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-example
-pkgver=${_version}${_build}+${_buildtag}
+pkgver=${_version}${_build}
pkgrel=1
pkgdesc="Unity Example Project based on Standard Assets."
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}/MacExampleProjectInstaller/Examples.pkg")
+md5sums=('12f6a2570908fddece70e2d1dc831fc3')
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 Example
-
- if [ -z "${_keepdownloads}" ]; then
- rm "${startdir}/Examples.pkg"
- fi
+ _dest="${pkgdir}/${_prefix}/Editor"
+ install -d "${_dest}"
+ cd "${_dest}"
+ cat "${srcdir}/Examples.pkg.tmp/Payload" | gzip -dc | cpio -i
}