updated on Fri Jan 20 04:00:45 UTC 2012
[aur-mirror.git] / obvious-git / PKGBUILD
blobab6b8eb6f013b616724693cab69deab3b3e874a2
1 # Contributor:  Jacob Winther <jacob.winther@gmail.com>
2 # Maintainer: Andei Thorp <garoth at the rather nice gmail.com>
3 pkgname=obvious-git
4 pkgver=20100621
5 pkgrel=1
6 pkgdesc="Widgets for awesome wm (latest version)"
7 arch=(any)
8 url="http://awesome.naquadah.org/wiki/Obvious"
9 license=('custom:MIT')
10 depends=('awesome')
11 makedepends=('git')
12 source=()
13 md5sums=()
15 _gitroot=git://git.mercenariesguild.net/obvious.git
16 _gitname=obvious
18 build() {
19   cd "$srcdir"
20   msg "Connecting to GIT server...."
22   if [ -d $_gitname ] ; then
23     cd $_gitname && git pull origin
24     msg "The local files are updated."
25   else
26     git clone $_gitroot
27   fi
29   msg "GIT checkout done or server timeout"
31   install -d ${pkgdir}/usr/share/awesome/lib/${_gitname} || return 1
32   cp -a ${_gitname}/* ${pkgdir}/usr/share/awesome/lib/${_gitname} || return 1
33   rm ${pkgdir}/usr/share/awesome/lib/${_gitname}/{AUTHORS,CONTRIBUTING.md,LICENSE,TODO} || return 1
34   install -Dm644 ${_gitname}/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE || return 1