3 # Contributor: Adrian C. <anrxc..sysphere.org>
8 pkgdesc="Modular widget library for the awesome window manager"
10 url="http://git.sysphere.org/vicious/about/"
14 optdepends=("hddtemp: for the HDD Temp widget type"
15 "alsa-utils: for the Volume widget type"
16 "wireless_tools: for the Wireless widget type"
17 "curl: for widget types accessing network resources")
18 install="${pkgname}.install"
20 _gitroot=http://git.sysphere.org/vicious
27 # Download or update the library
28 msg "Connecting to GIT server over HTTP..."
29 if [[ -d "${_gitname}" ]]; then
30 (cd "${_gitname}" && git pull origin)
31 msg "The local repository was updated."
33 git clone "${_gitroot}" "${_gitname}"
34 msg "The remote repository was cloned."
36 msg "GIT sync done, or server error (contact the maintainer)."
38 # Install the vicious library
39 install -d "${pkgdir}/usr/share/awesome/lib/${_gitname}"
40 install -m644 "${_gitname}/"*.lua "${pkgdir}/usr/share/awesome/lib/${_gitname}"
42 # Install vicious widgets
43 install -d "${pkgdir}/usr/share/awesome/lib/${_gitname}/widgets"
44 install -m644 "${_gitname}/widgets/"*.lua "${pkgdir}/usr/share/awesome/lib/${_gitname}/widgets"
46 # Install user contributed widgets
47 install -d "${pkgdir}/usr/share/awesome/lib/${_gitname}/contrib"
48 install -m644 "${_gitname}/contrib/"*.lua "${pkgdir}/usr/share/awesome/lib/${_gitname}/contrib"
50 # Install the documentation
51 install -D -m644 "${_gitname}/CHANGES" "${pkgdir}/usr/share/doc/awesome/${_gitname}/CHANGES"
52 install -m644 "${_gitname}/TODO" "${pkgdir}/usr/share/doc/awesome/${_gitname}"
53 install -m644 "${_gitname}/README" "${pkgdir}/usr/share/doc/awesome/${_gitname}"
54 install -m644 "${_gitname}/LICENSE" "${pkgdir}/usr/share/doc/awesome/${_gitname}"