summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGordian Edenhofer2015-08-31 00:06:04 +0200
committerGordian Edenhofer2015-08-31 00:06:04 +0200
commitaf495bd35f995b3b98cdbf7138e74c441c2c9468 (patch)
treeef4fb43a406d478d7316e272ef53a3991fdefe2c
parent94b2f62b09b5f9ca304eb74e50b3167811156a20 (diff)
downloadaur-af495bd35f995b3b98cdbf7138e74c441c2c9468.tar.gz
Link executables + Use online license + New pkgrel
The previous commit only updated the hash of the eula and bares a wrong title. This commit however orders things as stated.
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD20
2 files changed, 10 insertions, 14 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 3b8df40d464..7f0a1de4b54 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = unity-editor-bin
pkgdesc = The world's most popular development platform for creating 2D and 3D multiplatform games and interactive experiences
pkgver = 5.1.0f3+2015082501
- pkgrel = 1
+ pkgrel = 2
url = https://unity3d.com/
install = unity-editor-bin.install
arch = x86_64
@@ -25,9 +25,7 @@ pkgbase = unity-editor-bin
provides = unity-editor
conflicts = unity-editor
options = !strip
- source = https://unity3d.com/legal/eula
source = http://download.unity3d.com/download_unity/unity-editor-5.1.0f3+2015082501_amd64.deb
- md5sums = 0a8c7805f91c1cd46de5bdfba683eeb4
md5sums = c1c559bb684d00369ee6710be01c3700
pkgname = unity-editor-bin
diff --git a/PKGBUILD b/PKGBUILD
index 76e3ef62bd6..ac2a3054d7b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=unity-editor-bin
pkgver=5.1.0f3+2015082501
-pkgrel=1
+pkgrel=2
pkgdesc="The world's most popular development platform for creating 2D and 3D multiplatform games and interactive experiences"
arch=('x86_64')
license=('custom')
@@ -19,10 +19,8 @@ provides=('unity-editor')
conflicts=('unity-editor')
options=(!strip)
install=${pkgname}.install
-source=("https://unity3d.com/legal/eula"
- "http://download.unity3d.com/download_unity/unity-editor-${pkgver}_amd64.deb")
-md5sums=('0a8c7805f91c1cd46de5bdfba683eeb4'
- 'c1c559bb684d00369ee6710be01c3700')
+source=("http://download.unity3d.com/download_unity/unity-editor-${pkgver}_amd64.deb")
+md5sums=('c1c559bb684d00369ee6710be01c3700')
# Prevent compression of the final package since it would take too long (sereausly!)
PKGEXT='.pkg.tar'
@@ -38,12 +36,12 @@ package() {
chown root:root "${pkgdir}"/opt/Unity/Editor/chrome-sandbox
chmod 4755 "${pkgdir}"/opt/Unity/Editor/chrome-sandbox
- # Linking binaries
+ # Linking executables
mkdir -p "${pkgdir}"/usr/bin
- echo -e "#!/bin/sh\nexec /opt/Unity/Editor/Unity \"$@\"" > "${pkgdir}"/usr/bin/unity-editor
- echo -e "#!/bin/sh\nexec /opt/Unity/MonoDevelop/bin/monodevelop \"$@\"" > "${pkgdir}"/usr/bin/unity-monodevelop
- chmod 755 "${pkgdir}"/usr/bin/unity-editor "${pkgdir}"/usr/bin/unity-monodevelop
+ ln -s /opt/Unity/Editor/Unity "${pkgdir}"/usr/bin/unity-editor
+ ln -s /opt/Unity/MonoDevelop/bin/monodevelop "${pkgdir}"/usr/bin/unity-monodevelop
- # Moving the license in place
- install -Dm644 "${srcdir}/eula" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ # Refering to the online license
+ mkdir -p "${pkgdir}"/usr/share/licenses/${pkgname}
+ echo "Please refer to https://unity3d.com/legal/eula for detailed license information." > "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}