updated on Sat Jan 21 20:03:50 UTC 2012
[aur-mirror.git] / pywebkitgtk-pythonwebkit / PKGBUILD
blob5aa3a27ec9bbdbb66153056f0ccb2c600d89e171
1 # Maintainer: C Anthony Risinger
2 pkgname=pywebkitgtk-pythonwebkit
3 pkgver=20101115
4 pkgrel=1
5 pkgdesc="Python bindings to the [python]WebKit GTK+ port"
6 arch=('i686' 'x86_64')
7 url="http://code.google.com/p/pywebkitgtk/"
8 license=('LGPL')
9 depends=('libpythonwebkit-python2' 'pygtk')
10 options=('!libtool' '!makeflags')
11 source=()
12 md5sums=()
14 _gitroot='git://github.com/lkcl/pywebkitgtk.git'
15 _gitname='pythonwebkitgtk_1_1_8'
17 build() {
19     local g=${startdir}/${pkgname}.git w=${srcdir}
20     if ! [ -d "${g}" ]; then
21         git --git-dir=${g} --work-tree=${w} init
22     fi  
24     msg2 "Syncing with ${_gitroot}..."
25     git --git-dir=${g} --work-tree=${w} fetch -fu ${_gitroot} +${_gitname}:${_gitname}
26     msg2 "Initializing src tree..."
27     git --git-dir=${g} --work-tree=${w} read-tree --reset -u ${_gitspec:-${_gitname}}
29     export PYTHON=/usr/bin/python2
30     [ -d build ] && rm -rf build
31     mkdir build
32     cd build
34     msg2 "Building branch: origin/${_gitname}..."
35     ../autogen.sh --prefix=/usr
37     make
41 package() {
43     cd build
44     make DESTDIR=${pkgdir} install