updated on Thu Jan 19 16:10:29 UTC 2012
[aur-mirror.git] / orcsome-git / PKGBUILD
blob52fe8c68aaa6577e75792a24eacb4e5d030f17be
1 #Maintainer: Anton Bobrov <bobrov@vl.ru>
3 pkgname=orcsome-git
4 pkgver=20110816
5 pkgrel=1
6 pkgdesc="A scripting extension for NETWM compliant window managers"
7 arch=(any)
8 url="https://github.com/baverman/orcsome"
9 license=('MIT')
10 groups=()
11 depends=('python2' 'python-xlib')
12 makedepends=('python2-distribute')
14 _gitroot="git://github.com/baverman/orcsome.git"
15 _gitname="orcsome"
17 build() {
18   cd $srcdir
20   msg "Connecting to GIT server..."
21   if [[ -d ${_gitname} ]]; then
22     (cd ${_gitname} && git pull origin)
23   else
24     git clone --depth=1 ${_gitroot} ${_gitname}
25   fi
27   msg "GIT checkout done or server timeout"
28   msg "Starting make..."
30   rm -rf ${_gitname}-build
31   cp -r ${_gitname} ${_gitname}-build
33   cd ${srcdir}/${_gitname}-build
35   python2 setup.py build
38 package() {
39   cd ${srcdir}/${_gitname}-build
41   python2 setup.py install --root=$pkgdir/ --optimize=1