updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / pyenet-svn / PKGBUILD
blob80eec74262e4cd064353ab1b77d85dba4dd81244
1 # Contributor: Thomas Kinnen <thomas.kinnen@gmail.com>
2 pkgname=pyenet-svn
3 provides="pyenet"
4 conflicts="pyenet"
5 pkgdesc="pyenet is a python wrapper for the ENet library"
6 url="http://code.google.com/p/pyenet"
7 pkgver=22
8 pkgrel=1
9 arch=('i686' 'x86_64')
10 license=('BSD' 'MIT')
11 depends=('python2' 'cython')
12 makedepends=('subversion')
13 _svntrunk="http://pyenet.googlecode.com/svn/trunk/"
14 _svnmod="pyenet"
15 _enetpackage="enet-1.3.1"
16 source=(http://enet.bespin.org/download/${_enetpackage}.tar.gz)
17 md5sums=('d31adbd50924fe39aab3c23308f58959')
19 build() {
20         cd $srcdir
22         if [ -d ./$_svnmod ]; then
23                 cd $_svnmod
24                 svn up
25         else
26                 svn co $_svntrunk $_svnmod
27         fi
29         mkdir -p pyenet/enet/
30         mv -T $_enetpackage pyenet/enet/
31         cd $srcdir/$_svnmod
33         python2 setup.py build
34         python2 setup.py install --home=$pkgdir/usr --optimize=1 || return 1
35         mkdir -p $pkgdir/usr/lib/python2.7/site-packages/
36         mv $pkgdir/usr/lib/python/* $pkgdir/usr/lib/python2.7/site-packages/
37         rm -r $pkgdir/usr/lib/python