diff options
author | Tiago de Paula | 2024-04-21 16:09:52 -0300 |
---|---|---|
committer | Tiago de Paula | 2024-04-22 21:35:36 -0300 |
commit | a8edb049782daef80a198fde88b9d11c5fa2dcc8 (patch) | |
tree | 45b2e4e83bc72619390fb30577d2e25a7b01e599 | |
parent | 400d23d575bcb0bdbc014a86964b7881bec90aec (diff) | |
download | aur-a8edb049782daef80a198fde88b9d11c5fa2dcc8.tar.gz |
feat: tela-circle-icon-theme-all as a meta package
Currently, this PKGBUILD forces any user to build every theme twice, when each theme will be
installed only once, or maybe never. This change makes 'tela-circle-icon-theme-all' into a
non-build package, avoiding repeated builds, and effectively reducing makepkg time and
BUILDDIR size in half.
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 15 |
2 files changed, 22 insertions, 9 deletions
@@ -17,7 +17,21 @@ pkgbase = tela-circle-icon-theme-spl-git pkgname = tela-circle-icon-theme-all-git pkgdesc = A flat colorful design icon theme (all variants) - conflicts = tela-circle-icon-theme + depends = tela-circle-icon-theme-standard-git + depends = tela-circle-icon-theme-black-git + depends = tela-circle-icon-theme-blue-git + depends = tela-circle-icon-theme-brown-git + depends = tela-circle-icon-theme-green-git + depends = tela-circle-icon-theme-grey-git + depends = tela-circle-icon-theme-orange-git + depends = tela-circle-icon-theme-pink-git + depends = tela-circle-icon-theme-purple-git + depends = tela-circle-icon-theme-red-git + depends = tela-circle-icon-theme-yellow-git + depends = tela-circle-icon-theme-manjaro-git + depends = tela-circle-icon-theme-ubuntu-git + depends = tela-circle-icon-theme-dracula-git + depends = tela-circle-icon-theme-nord-git conflicts = tela-circle-icon-theme-all pkgname = tela-circle-icon-theme-standard-git @@ -25,6 +25,12 @@ pkgver() { git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } +package_tela-circle-icon-theme-all-git() { + pkgdesc="${pkgdesc} (all variants)" + depends=(${_pkgname[@]/%/-git}) + conflicts=(${_pkgbase}-all) +} + _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' @@ -37,14 +43,7 @@ _package() { cd "${_pkgbase}" install -dm755 "${pkgdir}/usr/share/icons" - ./install.sh -d "${pkgdir}/usr/share/icons" ${1} -} - -package_tela-circle-icon-theme-all-git() { - pkgdesc="${pkgdesc} (all variants)" - conflicts=("${_pkgbase}" "${_pkgbase}"-all) - - _package -a + ./install.sh -d "${pkgdir}/usr/share/icons" "${1}" } for _theme in "${_themes[@]}"; do |