Advertisement
Guest User

Untitled

a guest
Dec 14th, 2012
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.01 KB | None | 0 0
  1. # -*- shell-script -*-
  2. #
  3. # Contributor: Adrian C. <anrxc..sysphere.org>
  4.  
  5. pkgname=vicious-git
  6. pkgver=20121215
  7. _luaver="5.2"
  8. pkgrel=1
  9. pkgdesc="Modular widget library for window managers"
  10. arch=("any")
  11. url="http://git.sysphere.org/vicious/about/"
  12. license=("GPL2")
  13. depends=("lua")
  14. makedepends=("git")
  15. optdepends=("awesome: for which vicious was mainly written for"
  16.             "hddtemp: for the HDD Temp widget type"
  17.             "alsa-utils: for the Volume widget type"
  18.             "wireless_tools: for the Wireless widget type"
  19.             "curl: for widget types accessing network resources")
  20. install="${pkgname}.install"
  21.  
  22. _gitroot=http://git.sysphere.org/vicious
  23. _gitname=vicious
  24.  
  25. build() {
  26.   cd "${srcdir}"
  27.  
  28. # Download or update the library
  29.   msg "Connecting to GIT server over HTTP..."
  30.   if [[ -d "${_gitname}" ]]; then
  31.       (cd "${_gitname}" && git pull origin)
  32.       msg "The local repository was updated."
  33.   else
  34.       git clone "${_gitroot}" "${_gitname}"
  35.       msg "The remote repository was cloned."
  36.   fi
  37.   msg "GIT sync done, or server error (contact the maintainer)."
  38.  
  39. # Install the vicious library
  40.   install -d "${pkgdir}/usr/share/lua/${_luaver}/${_gitname}"
  41.   install -m644 "${_gitname}/"*.lua "${pkgdir}/usr/share/lua/${_luaver}/${_gitname}"
  42.  
  43. # Install vicious widgets
  44.   install -d "${pkgdir}/usr/share/lua/${_luaver}/${_gitname}/widgets"
  45.   install -m644 "${_gitname}/widgets/"*.lua "${pkgdir}/usr/share/lua/${_luaver}/${_gitname}/widgets"
  46.  
  47. # Install user contributed widgets
  48.   install -d "${pkgdir}/usr/share/lua/${_luaver}/${_gitname}/contrib"
  49.   install -m644 "${_gitname}/contrib/"*.lua "${pkgdir}/usr/share/lua/${_luaver}/${_gitname}/contrib"
  50.  
  51. # Install the documentation
  52.   install -D -m644 "${_gitname}/CHANGES" "${pkgdir}/usr/share/doc/${_gitname}/CHANGES"
  53.   install -m644 "${_gitname}/TODO" "${pkgdir}/usr/share/doc/${_gitname}"
  54.   install -m644 "${_gitname}/README" "${pkgdir}/usr/share/doc/${_gitname}"
  55.   install -m644 "${_gitname}/LICENSE" "${pkgdir}/usr/share/doc/${_gitname}"
  56. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement