summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 558151566ae2857c2172d184157d8d4d781ce0d5 (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
37
38
39
40
41
# Maintainer: spider-mario <spidermario@free.fr>
pkgname=('cinnxp' 'cinnxp-icons')
pkgver=1.1.0
pkgrel=4
pkgdesc="XP-like theme for Cinnamon"
arch=('any')
url="https://github.com/petrucci4prez/CinnXP"
license=('GPL3')
makedepends=('git' 'sassc' 'xorg-xcursorgen')
options=('!strip')
source=('cinnxp::git+https://github.com/petrucci4prez/CinnXP.git#commit=987ceb34604856a2eed9e1750a00faaf6e4fb948')
sha512sums=('SKIP')

build() {
	cd cinnxp

	rm -fr pkg
	./compile-theme -a -g 20

	find pkg -type d -exec chmod 755 '{}' +
	find pkg -type f -exec chmod 644 '{}' +
}

package_cinnxp() {
	optdepends=('gtk2' 'gtk3' 'cinnamon' 'metacity' 'cinnxp-icons')
	conflicts=('cinnxp-royale' 'cinnxp-metallic')
	provides=('cinnxp-royale' 'cinnxp-metallic')
	replaces=('cinnxp-royale' 'cinnxp-metallic')

	cd "$pkgdir"
	cp -a "$srcdir"/cinnxp/pkg/usr .
	rm -fr usr/share/icons
}

package_cinnxp-icons() {
	pkgdesc="XP-like theme for Cinnamon (Cursors)"

	cd "$pkgdir"
	cp -a "$srcdir"/cinnxp/pkg/usr .
	rm -fr usr/share/themes
}