summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fca2d24d47774820124a1f790df64f25d0168ae3 (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=r186.ae19fc6
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}"
  export _ORIGINAL_MATCHA_INSTALL_DIR=/usr/share/themes
  export _NEW_MATCHA_INSTALL_DIR="${pkgdir}"/usr/share/themes
  sed -i 's|'${_ORIGINAL_MATCHA_INSTALL_DIR}'|'${_NEW_MATCHA_INSTALL_DIR}'|g' ./Install
	./Install
}