updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / entrance-themes / PKGBUILD
bloba25ab3eb42941734adf249d7116f56814aac7967
1 # Contributor: Nicky726 (nicky726 <at> gmail <dot> com)
2 pkgname=entrance-themes
3 pkgver=20090121
4 pkgrel=1
5 pkgdesc="Themes for entrace from exchange.enlightenment.org"
6 url=(http://exchange.enlightenment.org/theme/index/theme_group_id/4944/)
7 license=('Unknown')
8 arch=('i686' 'x86_64')
9 depends=('entrance')
10 source=()
11 md5sums=()
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.
21 _themes=(
22 1204:Blu3s
23 1214:Clean_Entrance
24 564:Darkness
25 214:Fireball
26 414:Imago
27 1244:RedB
28 1574:Steampunk
29 1234:Uberpinguin
30 1224:Watchwolf
33 build() {
34   cd "${srcdir}"
36   # Get the themes
37   for _theme in ${_themes[@]}
39   do
40     # Separate name and theme id.
41     _name=${_theme#*:} # Remove theme "id:"
42     _name=${_theme//_/ } # Replace '_' by ' '
43     _id=${_theme%%:*} # Remove theme ":name"
45     echo
46     echo
47     echo "----------------------------------------------------------------"
48     echo "*** Downloading theme '${_name}'..."
49     echo
51     wget -N -c "${_themesbase}/${_id}" ||
52     echo 2>&1 "### Error downloading theme '${_name}'."
54   done
56   # Prepare package directory structure
57   install -m755 -d "${pkgdir}/usr/share/entrance/themes"
59   # Install the edjs
60   install -m644 ${srcdir}/*.edj "${pkgdir}/usr/share/entrance/themes"