summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7a1578227aa88ee1573b486f413c1e6b1bc5474f (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
pkgname=gtk-mcmojave-circle-icons-git
pkgver=520e55a
pkgrel=1
pkgdesc="MacOSX Mojave like circle icon theme for Linux desktops"
arch=('any')
license=('GPL')
depends=('gtk-engines')
optdepends=('gtk-engine-murrine')
themename=McMojave-circle
url=https://github.com/vinceliuice/McMojave-circle
source=("${themename}::git+https://github.com/vinceliuice/McMojave-circle.git#branch=master")
sha1sums=('SKIP')

pkgver() {
	cd "${themename}"
	git rev-parse --short HEAD
}

package() {
	cd "${themename}"
	rm -rf ".git"

  	install -d -m 755 "$pkgdir/usr/share/icons/${themename}"
  	install -d -m 755 "$pkgdir/usr/share/icons/${themename}-dark"

	cd "${themename}"
	find "." -type f -exec install -D -m 644 '{}' "$pkgdir/usr/share/icons/${themename}/{}" \;

	cd "../${themename}-dark"
  	find "." -type f -exec install -D -m 644 '{}' "$pkgdir/usr/share/icons/${themename}-dark/{}" \;
}