pmaports/main/postmarketos-hidden-desktop-entries/APKBUILD
Newbyte d4b43f8d24
main/postmarketos-hidden-desktop-entries: unhide Glade (MR 2993)
Glade can be useful if you're building GTK apps on your phone when
making use of convergence, so let's unhide it. The reason it was
hidden was that it gets pulled in when building Phosh, but this
might be solvable in a better way.

Hiding of org.gnome.Extensions can probably be dropped when
https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/31086
has been merged.
2022-03-15 09:05:39 +01:00

43 lines
1 KiB
Text

# Maintainer: Oliver Smith <ollieparanoid@postmarketos.org>
pkgname=postmarketos-hidden-desktop-entries
pkgver=2.2
pkgrel=0
pkgdesc="Hide useless .desktop icons (vim, htop, Firefox safe mode, ...)"
url="https://postmarketos.org"
arch="noarch"
license="GPL-3.0-or-later"
source="nodisplay.desktop"
options="!check"
replaces="
firefox
firefox-esr
gnome-shell
gvim
htop
neovim
vim
"
# Find original .desktop files in /usr/share/applications. Add original
# providers of the .desktop file to replaces="" above. They can be found here:
# https://pkgs.alpinelinux.org/contents?file=htop.desktop
_hidden="
htop
nvim
org.gnome.Extensions
org.mozilla.firefox-safe
vim
"
package() {
local dir="$pkgdir/usr/share/applications/"
local i
install -Dm644 "$srcdir/nodisplay.desktop" -t "$dir"
cd "$dir"
for i in $_hidden; do
ln -vs "nodisplay.desktop" "$i.desktop"
done
}
sha512sums="97b7aff6ff8f8451a654ae002500a4a56f289a2318ece759aa7705836e246a7fd33602a21bee48a8b2a1f6f513ac9835c039d75eb6c031cceea9b58dd2aeaea9 nodisplay.desktop"