summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 411b1ca48a129f4dcba496df9d8f69817153b2c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Maintainer: Slithery <aur at slithery dot uk>

pkgname=mediterranean-gtk-themes-git
pkgver=v2.03.0.1.r30.g1c33164
pkgrel=2
pkgdesc="The Mediterranean family of GTK+2/3 themes"
arch=('any')
url="https://github.com/rbrito/mediterranean-gtk-themes"
license=('GPL3')
optdepends=('gtk-engines: For GTK2 support'
            'gtk-engine-murrine: for GTK2 support'
            'gtk3: for GTK3 support')
makedepends=('git')
source=("${pkgname}::git+${url}")
sha256sums=('SKIP')

pkgver() {
  cd "${pkgname}"
  ( set -o pipefail
    git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  )
}

package () {
  cd "${pkgname}"
  find Mediterranean*/ -type f -exec install -Dm644 "{}" "${pkgdir}/usr/share/themes/{}" \;
}