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)
9 pkgdesc="Themes for E17 desklock from exchange.enlightenment.org"
11 url="http://exchange.enlightenment.org/theme/index/theme_group_id/2634/"
12 license=('GPL' 'BSD' 'CCPL' 'Unknown')
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.
58 2234:Detour_Glossy_Red
69 2513:A-Cappuccino-Cream
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"
100 echo "----------------------------------------------------------------"
101 echo "*** Downloading theme '${_name}'..."
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}'."
109 # Prepare package directory structure
110 install -m755 -d "${pkgdir}/usr/share/enlightenment/data/themes"
113 install -m644 *.edj "${pkgdir}/usr/share/enlightenment/data/themes"