diff options
author | Nobbele | 2021-12-21 15:16:12 +0100 |
---|---|---|
committer | Nobbele | 2021-12-21 15:16:12 +0100 |
commit | 57334a30cd8d76e59a181dd25ae00eaeb7cbdc42 (patch) | |
tree | cf2885d7a2847ebb52a4ce400fe9a44273af8304 | |
parent | c34979b72cfa0948c7befd51ed38a2dcb2ca21d1 (diff) | |
download | aur-57334a30cd8d76e59a181dd25ae00eaeb7cbdc42.tar.gz |
Adds post_install script
-rw-r--r-- | .SRCINFO | 1 | ||||
-rw-r--r-- | PKGBUILD | 8 | ||||
-rw-r--r-- | unityhub.install | 5 |
3 files changed, 8 insertions, 6 deletions
@@ -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 @@ -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 |