summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 56b3f4a40308483509b267cd8df8a2c180343d22 (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.0.dark.r24.gc9b5b0b
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/{}" \;
}