updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / python-etk-svn / PKGBUILD
blob4107581e23fb91e6eb95dd45faf87a3fafd36ba0
1 # Contributor: furester <furester at gmail dot com>
3 pkgname="python-etk-svn"
4 pkgver=37309
5 pkgrel="1"
6 pkgdesc="ETK is a toolkit based on the EFL (Python bindings)"
7 arch=('i686' 'x86_64')
8 url="http://www.enlightenment.org"
9 license=('BSD')
10 depends=('etk-svn' 'python')
11 makedepends=('svn' 'cython' 'pyrex')
12 conflicts=('pyetk')
13 provides=('pyetk')
14 source=()
15 md5sums=()
17 _svntrunk="http://svn.enlightenment.org/svn/e/trunk/BINDINGS/python/python-etk/"
18 _svnmod="python-etk"
20 build() {
21   cd $srcdir
23   msg "Connecting to $_svntrunk SVN server...."
24   if [ -d $_svnmod/.svn ]; then
25     (cd $_svnmod && svn up -r $pkgver)
26   else
27     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
28   fi
30   msg "SVN checkout done or server timeout"
31   msg "Starting make..."
33   cp -r $_svnmod $_svnmod-build
34   cd $_svnmod-build
36   _incdir=`python -c "import distutils.sysconfig; \
37       print distutils.sysconfig.get_python_inc()"`
38   python setup.py install --root="$pkgdir" \
39       install_headers --install-dir="$pkgdir/${_incdir}" || return 1
41 # install license files
42   install -Dm644 $srcdir/$_svnmod-build/COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING
43   install -Dm644 $srcdir/$_svnmod-build/COPYING-PLAIN $pkgdir/usr/share/licenses/$pkgname/COPYING-PLAIN
44     
45   rm -r $srcdir/$_svnmod-build