summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: edecc01b85dfc17bdbb76e24c96b2de92a7e6ed7 (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
34
35
36
# Maintainer: fwhcat <fabien.wang@gmail.com>

_pkgname=windows10-dark-gtk-theme
pkgname=${_pkgname}-git
pkgver=3.2.dark.r7.g6f3e063
pkgrel=1
pkgdesc="Windows 10 Dark GTK theme"
arch=('any')
url="https://github.com/B00merang-Project/Windows-10-Dark"
license=('GPL3')

depends=('gtk-engines' 'gtk-engine-murrine')
optdepends=('gnome-themes-standard' 'windows10-icon-theme-git' 'windows10-tint2rc')
makedepends=('git')

provides=("${_pkgname}-git")
conflicts=("${_pkgname}-git")

source=("${_pkgname}::git+https://github.com/B00merang-Project/Windows-10-Dark.git")
sha256sums=('SKIP')

pkgver() {
	cd "${srcdir}/${_pkgname}"
	git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
  cd "${srcdir}/${_pkgname}"

  # create theme dir
  install -d -m 755 "$pkgdir/usr/share/themes/Windows10-Dark"

  # install theme
  find * -type f -exec \
  install -D -m 644 '{}' "$pkgdir/usr/share/themes/Windows10-Dark/{}" \;
}