updated on Fri Jan 13 04:01:25 UTC 2012
[aur-mirror.git] / zuki-blues-theme / PKGBUILD
blobb4c48fb49705726daed9127d309fc660393d4914
1 # Maintainer: Valere Monseur <valere dot monseur at ymail dot com>
3 # Remark: if you encounter "403: Forbidden" from deviantart then modify
4 # /etc/makepkg.conf and add --user-agent="" in the wget command
6 pkgname=zuki-blues-theme
7 pkgver=20110724
8 pkgrel=1
9 pkgdesc="An openbox, bmpanel2, gtk2, emerald and xfwm4 nice blue theme"
10 arch=('any')
11 url="http://opendesktop.org/content/show.php/Zuki+Blues?content=128931"
12 license=('GPL3' 'CCPL')
13 depends=('gtk-engine-murrine' 'gtk-engine-equinox')
14 optdepends=('openbox' 'bmpanel2' 'emerald' 'xfwm4')
15 makedepends=('p7zip')
16 source=(http://www.deviantart.com/download/175190463/Zuki_Blues_by_lassekongo83.7z
17         http://opendesktop.org/CONTENT/content-files/128931-Zuki%20Blues.tar.gz
18         http://xfce-look.org/CONTENT/content-files/132830-Zuki%20Blues.tar.gz)
19 md5sums=('8918e119fcbb9bc0c01086c75accfb31'
20          'cde5c7ef7e710bfb5c3581564efb0cd8'
21          'd2c4bb12ffe55d53fbdf363476222b40')
23 build() {
25   ### step 1 - openbox, bmpanel2 and xfwm4 ###
27   # openbox and xfwm4
29   cd "${srcdir}"
30   tar -xzf "Zuki Blues.obt"
31   tar -xzf "Zuki Blues Border.obt"
32   tar -xzf "Zuki Blues Shine.obt"
34   install -d "${pkgdir}"/usr/share/themes/zuki-blues
35   install -d "${pkgdir}"/usr/share/themes/zuki-blues-border
36   install -d "${pkgdir}"/usr/share/themes/zuki-blues-shine
38   cp -r "${srcdir}"/"Zuki Blues"/* "${pkgdir}"/usr/share/themes/zuki-blues/
39   cp -r "${srcdir}"/"Zuki Blues Border"/* "${pkgdir}"/usr/share/themes/zuki-blues-border/
40   cp -r "${srcdir}"/"Zuki Blues Shine"/* "${pkgdir}"/usr/share/themes/zuki-blues-shine/
42   # bmpanel2
44   cd "${srcdir}"
45   install -d "${pkgdir}"/usr/share/bmpanel2/themes/zuki-blues
46   cp -r "${srcdir}"/bmpanel2/Zuki-Blues/* "${pkgdir}"/usr/share/bmpanel2/themes/zuki-blues/
48   ### step 2 - gtk2 and emerald ###
50   mkdir -p "${srcdir}"/7z
51   cd "${srcdir}"/7z
52   7z x ../../Zuki_Blues_by_lassekongo83.7z
54   # gtk2
56   install -d "${pkgdir}"/usr/share/themes/zuki-blues
57   cp -r "${srcdir}"/7z/"Zuki Blues"/* "${pkgdir}"/usr/share/themes/zuki-blues/
59   # emerald
61   install -d "${pkgdir}"/usr/share/emerald/themes/zuki-blues
62   install -d "${pkgdir}"/usr/share/emerald/themes/zuki-blues-shine
64   cd "${pkgdir}"/usr/share/emerald/themes/zuki-blues
65   tar xzf "${srcdir}"/7z/"Zuki Blues.emerald"
67   cd "${pkgdir}"/usr/share/emerald/themes/zuki-blues-shine
68   tar xzf "${srcdir}"/7z/"Zuki Blues Shine.emerald"
70   # fix permission and ownership problems
72   find "${pkgdir}"/ -type d -exec chmod 755 '{}' \;
73   find "${pkgdir}"/ -type f -exec chmod 644 '{}' \;
74   chown -R root.root "${pkgdir}"/*