1 # Contributor: Nicky726 (nicky726 <at> gmail <dot> com)
2 pkgname=entrance-themes
5 pkgdesc="Themes for entrace from exchange.enlightenment.org"
6 url=(http://exchange.enlightenment.org/theme/index/theme_group_id/4944/)
13 # Base URL for the themes.
14 _themesbase="http://exchange.enlightenment.org/theme/get"
16 # Array of "id:name" values,
17 # where id is the theme id at http://exchange.enlightenment.org/.
18 # Use '_' instead of ' ' in names;
19 # they will be replaced when printed to stdout.
37 for _theme in ${_themes[@]}
40 # Separate name and theme id.
41 _name=${_theme#*:} # Remove theme "id:"
42 _name=${_theme//_/ } # Replace '_' by ' '
43 _id=${_theme%%:*} # Remove theme ":name"
47 echo "----------------------------------------------------------------"
48 echo "*** Downloading theme '${_name}'..."
51 wget -N -c "${_themesbase}/${_id}" ||
52 echo 2>&1 "### Error downloading theme '${_name}'."
56 # Prepare package directory structure
57 install -m755 -d "${pkgdir}/usr/share/entrance/themes"
60 install -m644 ${srcdir}/*.edj "${pkgdir}/usr/share/entrance/themes"