summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorNobbele2021-12-21 15:16:12 +0100
committerNobbele2021-12-21 15:16:12 +0100
commit57334a30cd8d76e59a181dd25ae00eaeb7cbdc42 (patch)
treecf2885d7a2847ebb52a4ce400fe9a44273af8304
parentc34979b72cfa0948c7befd51ed38a2dcb2ca21d1 (diff)
downloadaur-57334a30cd8d76e59a181dd25ae00eaeb7cbdc42.tar.gz
Adds post_install script
-rw-r--r--.SRCINFO1
-rw-r--r--PKGBUILD8
-rw-r--r--unityhub.install5
3 files changed, 8 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 5ccd018fe828..af0ba8574b6b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -3,6 +3,7 @@ pkgbase = unityhub-beta
pkgver = 3.0.0beta.7
pkgrel = 1
url = https://unity.com/
+ install = unityhub.install
arch = x86_64
license = custom
depends = nss
diff --git a/PKGBUILD b/PKGBUILD
index 630b37003cc4..ab1be6dcc238 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Nobbele <realnobbele@gmail.com>
pkgname=unityhub-beta
pkgver=3.0.0beta.7
-pkgrel=1
+pkgrel=2
pkgdesc="Unity Hub beta"
arch=('x86_64')
url="https://unity.com/"
@@ -9,6 +9,7 @@ license=('custom')
depends=('nss' 'gtk3')
optdepends=('libappindicator-gtk3: The DEB says this an optional dependency')
provides=('unityhub')
+install='unityhub.install'
source=(
"$pkgname-$pkgver.deb::https://hub.unity3d.com/linux/repos/deb/pool/main/u/unity/unityhub_amd64/unityhub-amd64-3Beta.0.0-beta.7.deb"
'license.txt'
@@ -26,8 +27,3 @@ package() {
install -Dm644 "$srcdir/license.txt" "$pkgdir/usr/share/licenses/$pkgname/license.txt"
}
-
-post_install() {
- update-mime-database /usr/share/mime
- update-desktop-database /usr/share/applications
-}
diff --git a/unityhub.install b/unityhub.install
new file mode 100644
index 000000000000..10f1820993b8
--- /dev/null
+++ b/unityhub.install
@@ -0,0 +1,5 @@
+post_install() {
+ update-mime-database /usr/share/mime
+ update-desktop-database /usr/share/applications
+ xdg-mime default unityhub.desktop x-scheme-handler/unityhub
+} \ No newline at end of file