diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 26 |
1 files changed, 24 insertions, 2 deletions
@@ -1,10 +1,25 @@ # Maintainer: Adrián Pérez de Castro <adrian@perezdecastro.org> + +# Set to non-empty value to change the "Inherits=..." value in +# the "index.theme"; the value will be inserted as-is in the file. +# For example the following would make the theme inherit from the +# "nouveGnome" theme: +# +# _inherits='nouveGnome,hicolor' +# +# The default value speficied by the theme is "Moka,gnome,hicolor". +# Note that most of the time "hicolor" should be always given as +# last possible fall-back icon theme, as it will be always present. +# +_inherits='' + pkgname='vertex-icons-git' pkgdesc='A Gnome icon theme to match the Vertex Gtk theme' pkgver=r16.f27e47e -pkgrel=2 +pkgrel=3 url='https://github.com/horst3180/Vertex-Icons/' -depends=('moka-icon-theme-git' 'faba-mono-icons-git') +optdepends=('moka-icon-theme-git: Default fall-back icon theme' + 'faba-mono-icons-git: Default fall-back icon theme') arch=('any') license='GPL' source=("${pkgname}::git://github.com/horst3180/Vertex-Icons.git") @@ -19,6 +34,13 @@ pkgver () { ) } +prepare () { + if [[ -n ${_inherits} ]] ; then + # Change "Inherits=" line in "index.theme" + sed -i "s/^Inherits=.*$/Inherits=${_inherits}/" "${pkgname}/index.theme" + fi +} + package () { cd "${pkgname}" install -dm755 "${pkgdir}/usr/share/icons/Vertex-Icons" |