updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / blingbling-git / PKGBUILD
blobe4a7faf420a34729090136b125c581476afa36ed
1 # Contributor: Zsolt Udvari <udvzsolt@gmail.com>
3 pkgname=blingbling-git
4 pkgver=20111216
5 pkgrel=1
6 pkgdesc="Graphical widget library for Awesome Windows Manager."
7 arch=("any")
8 url="http://awesome.naquadah.org/wiki/Blingbling"
9 license=("GPL2")
10 depends=("awesome" "lua-oocairo")
11 makedepends=("git")
12 changelog=$pkgname.changelog
14 _gitroot=git://github.com/cedlemo/blingbling.git
15 _gitname=blingbling
18 build() {
19   cd "${srcdir}"
21 # Download or update the library
22   msg "Connecting to GIT server over HTTP..."
23   if [[ -d "${_gitname}" ]]; then
24       (cd "${_gitname}" && git pull origin)
25       msg "The local repository was updated."
26   else
27       git clone "${_gitroot}" "${_gitname}"
28       msg "The remote repository was cloned."
29   fi
30   msg "GIT sync done or server timeout."
32   [ -d ${srcdir}/${_gitname}/examples_of_rc.lua ] && mv ${srcdir}/${_gitname}/examples{_of_rc.lua,}
33   install -d ${pkgdir}/usr/share/awesome/lib/${_gitname}
34   install -m644 ${srcdir}/${_gitname}/*.lua ${pkgdir}/usr/share/awesome/lib/${_gitname}
35   cp -r ${srcdir}/${_gitname}/layout ${pkgdir}/usr/share/awesome/lib/${_gitname}
37   install -d ${pkgdir}/usr/share/doc/${_gitname}
38   install -m644 ${srcdir}/${_gitname}/{README,To_Do} ${pkgdir}/usr/share/doc/${_gitname}
39   install -m644 ${srcdir}/${_gitname}/.udisks-glue.conf ${pkgdir}/usr/share/doc/${_gitname}/udisks-glue.conf
40   install -m644 ${srcdir}/${_gitname}/modules/*.html ${pkgdir}/usr/share/doc/${_gitname}
41   cp -r ${srcdir}/${_gitname}/examples ${pkgdir}/usr/share/doc/${_gitname}
43   install -d ${pkgdir}/usr/share/licenses/${_gitname}
44   install -m644 ${srcdir}/${_gitname}/LICENCE ${pkgdir}/usr/share/licenses/${_gitname}