summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6620d2d08b7e79fc31499dfa1a6f1655a639bd46 (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
29
30
31
32
# Maintainer: jef <jeffreylec@gmail.com>

pkgname=gruvbox-tilix-git
pkgver=r7.8c01335
pkgrel=1
pkgdesc="Gruvbox theme for Tilix"
arch=("any")
url="https://github.com/MichaelThessel/tilix-gruvbox"
license=("MIT")
depends=("tilix>=1.5")
makedepends=("git")
source=("${pkgname}::git+https://github.com/MichaelThessel/tilix-gruvbox.git")
md5sums=("SKIP")

pkgver() {
  cd "${srcdir}/${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 "${srcdir}/${pkgname}"
  install -D -m 0644 "gruvbox-dark-hard.json" "$HOME/.config/tilix/schemes"
  install -D -m 0644 "gruvbox-dark-medium.json" "$HOME/.config/tilix/schemes"
  install -D -m 0644 "gruvbox-dark-soft.json" "$HOME/.config/tilix/schemes"
  install -D -m 0644 "gruvbox-dark.json" "$HOME/.config/tilix/schemes"
  install -D -m 0644 "gruvbox-light-hard.json" "$HOME/.config/tilix/schemes"
  install -D -m 0644 "gruvbox-light-medium.json" "$HOME/.config/tilix/schemes"
  install -D -m 0644 "gruvbox-light-soft.json" "$HOME/.config/tilix/schemes"
}