diff options
author | Tiago de Paula | 2024-04-21 16:04:04 -0300 |
---|---|---|
committer | Tiago de Paula | 2024-04-22 21:35:35 -0300 |
commit | 400d23d575bcb0bdbc014a86964b7881bec90aec (patch) | |
tree | 59764d26d21c3eaf37ee874b69a9689100b72246 | |
parent | ab06d97161f13fd50d550103c94decfde8862c8f (diff) | |
download | aur-400d23d575bcb0bdbc014a86964b7881bec90aec.tar.gz |
fix: package dependencies
A few details here:
- 'bash' is already required by pacman and makepkg, we don't need to declare it
- 'gtk-update-icon-cache' shouldn't be used at all, better leave it to the pacman hook
- 'adwaita-icon-theme' and 'breeze-icons' are declared in the 'Inherits' section of 'index.theme'
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 15 |
2 files changed, 15 insertions, 4 deletions
@@ -5,10 +5,10 @@ pkgbase = tela-circle-icon-theme-spl-git url = https://github.com/vinceliuice/Tela-circle-icon-theme arch = any license = GPL3 - makedepends = bash makedepends = git - depends = gtk-update-icon-cache depends = hicolor-icon-theme + optdepends = adwaita-icon-theme: for better GNOME integration + optdepends = breeze-icons: for better KDE integration provides = tela-circle-icon-theme options = !strip options = !debug @@ -11,8 +11,10 @@ pkgrel=1 url="https://github.com/vinceliuice/${_pkgbase^}" arch=('any') license=('GPL3') -makedepends=('bash' 'git') -depends=('gtk-update-icon-cache' 'hicolor-icon-theme') +makedepends=('git') +depends=('hicolor-icon-theme') +optdepends=('adwaita-icon-theme: for better GNOME integration' + 'breeze-icons: for better KDE integration') provides=("${_pkgbase}") options=(!strip !debug) source=("${_pkgbase}::git+${url}.git") @@ -24,6 +26,15 @@ pkgver() { } _package() { + # The icon cache is generated by a pacman hook, so it can be regenerated when 'gtk-update-icon-cache' is updated, + # and shouldn't be part of the package itself. Other icon packages like 'hicolor-icon-theme' and 'adwaita-icon-theme' + # does things this way. + # See https://gitlab.archlinux.org/archlinux/packaging/packages/gtk4/-/blob/main/gtk-update-icon-cache.hook + gtk-update-icon-cache() { + true + } + export -f gtk-update-icon-cache + cd "${_pkgbase}" install -dm755 "${pkgdir}/usr/share/icons" ./install.sh -d "${pkgdir}/usr/share/icons" ${1} |