summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e83e2b3915b81c19a2be62b3d1f08eaf223e3b5f (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
33
# Maintainer: jef <jeffreylec@gmail.com>

pkgname=gruvbox-tilix-git
pkgver=r7.8c01335
pkgrel=2
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}"
  mkdir -p "${HOME}/.config/tilix/schemes/"
  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/"
}