updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / shifty-github / PKGBUILD
blob090c179c7e8bb78e4f8318acbd2cb8272e823573
1 # Maintainer: Anton S <fluffylime at gmail dot com>
2 pkgname=shifty-github
3 pkgver=20111122
4 pkgrel=1
5 pkgdesc="Dynamic tagging library for Awesome window manager, bioe007's fork"
6 arch=("i686" "x86_64")
7 url="http://awesome.naquadah.org/wiki/Shifty"
8 license=("unknown")
9 depends=("awesome")
10 makedepends=("git")
11 conflicts=("shifty", "shifty-git")
12 provides=("shifty")
13 install="${pkgname}.install"
15 _gitroot=git://github.com/bioe007/awesome-shifty.git
16 _gitname=shifty
18 build() {
19   cd "${srcdir}"
21 # Update the library
22   msg "Connecting to GIT server...."
23   if [[ -d "${_gitname}" ]]; then
24       (cd "${_gitname}" && git pull origin)
25       msg "The local files are updated."
26   else
27       git clone "${_gitroot}" "${_gitname}"
28   fi
29   msg "GIT checkout done or server timeout"
32 package() {
33   # Install the library
34   install -d "${pkgdir}/usr/share/awesome/lib/${_gitname}"
35   install -m644 "${_gitname}/init.lua" "${pkgdir}/usr/share/awesome/lib/${_gitname}/init.lua"
37   # Install the doc
38   install -d "${pkgdir}/usr/share/doc/awesome/${_gitname}/"
39   install -m644 "${_gitname}/README.md" "${pkgdir}/usr/share/doc/awesome/${_gitname}/README.md"
40   install -m644 "${_gitname}/example.rc.lua" "${pkgdir}/usr/share/doc/awesome/${_gitname}/example.rc.lua"