diff options
author | Oscar Morante | 2018-07-02 20:20:24 +0200 |
---|---|---|
committer | Oscar Morante | 2018-07-02 20:20:24 +0200 |
commit | 4de718f76a7e8594592b89d6ef95b2915a026bf3 (patch) | |
tree | 499d2ff617a0af2e0a5cd55d1ece49e643134713 /PKGBUILD | |
download | aur-4de718f76a7e8594592b89d6ef95b2915a026bf3.tar.gz |
first commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..324d53f9e984 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,49 @@ +# Maintainer: Oscar Morante <spacepluk at gmail dot com> + +_version=2017.4.4 +_build=f1 +_buildtag=20180525 +_randomstring=e685bfa3c483 +_prefix=/opt/UnityLts +_unitydownloads="http://beta.unity3d.com/download/${_randomstring}" +#_keepdownloads=yes + +pkgname=unity-editor-lts-example +pkgver=${_version}${_build}+${_buildtag} +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=('61af707a8a8e78ef4d05c474c0c3ff43f30d8027') +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 +} + |