updated on Fri Jan 6 08:01:17 UTC 2012
[aur-mirror.git] / vain-git / PKGBUILD
blob7eccc6f813e59aebb609a6d3d6aeaa33c496267f
1 # Maintainer: demian <mikar ατ gmx δοτ de>
2 pkgname=vain-git
3 pkgver=20110617
4 pkgrel=1
5 pkgdesc="Layouts, Utilities and Widgets for Awesome WM"
6 arch=('any')
7 url="https://github.com/vain/awesome-vain"
8 license=('GPL')
9 depends=('awesome')
10 makedepends=('git')
12 _gitroot="git://github.com/vain/awesome-vain.git"
13 _gitname="awesome-vain"
15 build() {
16   cd ${srcdir}
18   msg "Connecting to GIT server..."
19   if [[ -d ${_gitname} ]]; then
20     (cd ${_gitname} && git pull origin)
21   else
22     git clone ${_gitroot} ${_gitname}
23   fi
24   msg "GIT checkout done or server timeout"
25   msg "Starting make..."
27   rm -rf ${_gitname}-build
28   git clone ${_gitname} ${_gitname}-build
31 package() {
32   cd ${srcdir}/${_gitname}-build
33   
34   # Create installation directories
35   install -d -m755 "${pkgdir}/usr/share/awesome/lib/vain/"
36   # Install
37   cp -a vain "${pkgdir}/usr/share/awesome/lib/" || return 1
38   
39   # Fix permissions. Stupid ntfs.
40   find "$pkgdir" -type d -print0 | xargs -0 chmod -R 755
41   find "$pkgdir" -type f -print0 | xargs -0 chmod -R 644