updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / vicious-git / PKGBUILD
blobb5e12eda62ee154f1cab5530d56506cce2b1f6e7
1 # -*- shell-script -*-
3 # Contributor: Adrian C. <anrxc..sysphere.org>
5 pkgname=vicious-git
6 pkgver=20111221
7 pkgrel=1
8 pkgdesc="Modular widget library for the awesome window manager"
9 arch=("any")
10 url="http://git.sysphere.org/vicious/about/"
11 license=("GPL2")
12 depends=("awesome")
13 makedepends=("git")
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
21 _gitname=vicious
24 build() {
25   cd "${srcdir}"
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."
32   else
33       git clone "${_gitroot}" "${_gitname}"
34       msg "The remote repository was cloned."
35   fi
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}"