summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: de7c9a72820c5a8685ff791b6dd7b58a6871f716 (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: Kibouo <csonka.mihaly@hotmail.com>
pkgname=matcha-gtk-theme-git
pkgver=r249.7f76285
pkgrel=1
pkgdesc='A flat design theme for GTK3, GTK2, and Gnome-Shell.'
arch=('any')
url='https://vinceliuice.github.io/theme-matcha'
license=('GPL3')
depends=('gtk-engine-murrine' 'gtk-engines' 'gtk3')
makedepends=('git')
provides=("${pkgname}")
conflicts=("${pkgname}" 'matcha-gtk-theme')
source=("${pkgname}::git+https://github.com/vinceliuice/matcha.git")
md5sums=('SKIP')
pkgver() {
	cd "${pkgname}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
  mkdir "${pkgdir}"/usr
  mkdir "${pkgdir}"/usr/share
  mkdir "${pkgdir}"/usr/share/themes
  cd "${pkgname}"
  _ORIGINAL_MATCHA_INSTALL_DIR=/usr/share/themes
  _NEW_MATCHA_INSTALL_DIR="${pkgdir}"/usr/share/themes
  sed -i 's|'${_ORIGINAL_MATCHA_INSTALL_DIR}'|'${_NEW_MATCHA_INSTALL_DIR}'|g' ./install.sh
	./install.sh
}