summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGordian Edenhofer2015-08-31 01:12:21 +0200
committerGordian Edenhofer2015-08-31 01:12:21 +0200
commitbb5625b7228414984a577bc7ce003465f300cbe0 (patch)
treee5b3b5dcd848fe9594c733bc981df7be843c4beb
parent876ddb637a735236295efb4e75647ce9d59a9319 (diff)
downloadaur-bb5625b7228414984a577bc7ce003465f300cbe0.tar.gz
Use files instead of symlinks in /usr/bin + Update pkgrel
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD11
2 files changed, 8 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 4973ece417a5..1ff15f6892fa 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 = 2
+ pkgrel = 3
url = https://unity3d.com/
install = unity-editor-bin.install
arch = x86_64
diff --git a/PKGBUILD b/PKGBUILD
index 8e6a9d248266..8d1b26d3dd7c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -9,7 +9,7 @@ PKGEXT='.pkg.tar'
pkgname=unity-editor-bin
pkgver=5.1.0f3+2015082501
-pkgrel=2
+pkgrel=3
pkgdesc="The world's most popular development platform for creating 2D and 3D multiplatform games and interactive experiences."
arch=('x86_64')
license=('custom')
@@ -40,10 +40,13 @@ package() {
chown root:root "${pkgdir}"/opt/Unity/Editor/chrome-sandbox
chmod 4755 "${pkgdir}"/opt/Unity/Editor/chrome-sandbox
- # Linking executables
+ # Linking executables (symlinking does not work!)
mkdir -p "${pkgdir}"/usr/bin
- ln -s /opt/Unity/Editor/Unity "${pkgdir}"/usr/bin/unity-editor
- ln -s /opt/Unity/MonoDevelop/bin/monodevelop "${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
+ 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
# Refering to the online license
mkdir -p "${pkgdir}"/usr/share/licenses/${pkgname}