updated on Mon Jan 16 00:01:41 UTC 2012
[aur-mirror.git] / e17-themes / PKGBUILD
blobb39e395617a2ac771e07b9e7bd6bf1c3efd0e4d3
1 # Maintainer: Nicky726 (nicky726 <at> gmail <dot> com)
2 # Contributor: NetoMan (hypernetoman <at> gmail <dot> com)
3 # Contributor: jakob (hellwoofa <at> arcor <dot> de)                          
4 # Contributor: Adam Vogt (vogt <dot> adam <at> gmail <dot> com)
6 pkgname=e17-themes
7 pkgver=20110216
8 pkgrel=1
9 pkgdesc="Themes for E17 desklock from exchange.enlightenment.org"
10 arch=('any')
11 url="http://exchange.enlightenment.org/theme/index/theme_group_id/2634/"
12 license=('GPL' 'BSD' 'CCPL' 'Unknown')
13 depends=('e')
14 source=()
15 md5sums=()
17 # Base URL for the themes.
18 _themesbase="http://exchange.enlightenment.org/theme/get"
20 # Array of "id:name" values,
21 # where id is the theme id at http://exchange.enlightenment.org/.
22 # Use '_' instead of ' ' in names;
23 # they will be replaced when printed to stdout.
25 _themes=(
26 394:Apple17
27 2084:Bling
28 404:Bloody_Imago
29 1114:Blue_Eyed
30 1044:Camou
31 294:Cerium
32 4:Chrome
33 604:ClearLooks
34 1034:Crude
35 274:Cthulhain
36 1074:Dali
37 444:Darkness
38 1064:Dark_Revolution
39 1104:DarkSide
40 934:Dukes
41 174:Edjy
42 164:Edjy_Black
43 204:Fireball
44 624:Gant
45 154:Grunge
46 184:Iceball
47 374:Imago
48 384:Imago_Colored
49 1594:Milky
50 1054:Night_Bling
51 2094:Pink_Apple
52 304:Simply_White
53 884:Steampunk
54 614:Winter
55 2154:Post_It_White
56 2164:PCE17OS
57 534:Japan_2007
58 2234:Detour_Glossy_Red
59 2333:Blue_Grass
60 2353:Simply_White_etk
61 2373:Black_and_Blue
62 2383:A-Wood-Grey
63 2393:Red-Black
64 2413:A-Special-Green
65 2433:A-Ice-Blue
66 2443:A-Wood-Nogal
67 2473:A-BlackLuxe-Blue
68 2493:A-Japan_2010
69 2513:A-Cappuccino-Cream
70 2503:Pastel_Blue
71 2523:A-Lynx_Pardinus
72 2543:A-Egypt_A.D
73 2533:HandiTheme
74 2563:A-Genesis
75 2573:Beautiful_Blue
76 2601:A-Siglo_XIX
77 2607:A-Unity-BG
78 2613:A-Mare_Nostrum
79 2631:New_Millenium
80 2637:AL-Luxe-Pclos
81 2643:A-Imperial
82 2649:AL-Bodhi_Grayish
83 2673:Detour
84 2667:Elegance
87 package() {
88 cd "${srcdir}"
90 # Get the themes
91 for _theme in ${_themes[@]}
93 # Separate name and theme id.
94 _name=${_theme#*:} # Remove theme "id:"
95 _name=${_theme//_/ } # Replace '_' by ' '
96 _id=${_theme%%:*} # Remove theme ":name"
98 echo
99 echo
100 echo "----------------------------------------------------------------"
101 echo "*** Downloading theme '${_name}'..."
102 echo
104 # Upstream sends themes under the numerical code, missuse -O to workaround
105 wget -O "${_theme#*:}.edj" -c "${_themesbase}/${_id}" ||
106 echo 2>&1 "### Error downloading theme '${_name}'."
107 done
109 # Prepare package directory structure
110 install -m755 -d "${pkgdir}/usr/share/enlightenment/data/themes"
112 # Install the edjs
113 install -m644 *.edj "${pkgdir}/usr/share/enlightenment/data/themes"