updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / python-pyserial-svn / PKGBUILD
blob78e2e1ef76014574ab33302d4638620973bc1458
1 # Contributer: Sergej Pupykin <pupykin.s+arch@gmail.com>
2 # Contributor: Douglas Soares de Andrade <dsandrade@gmail.com>
3 # Maintainer: Thomas Burdick <thomas.burdick@gmail.com>
5 pkgname=python-pyserial-svn
6 pkgver=381
7 pkgrel=1
8 pkgdesc="Multiplatform Serial Port Module for Python"
9 arch=('any')
10 url="http://pyserial.sf.net"
11 license=('custom:PYTHON')
12 makedepends=('subversion')
13 depends=('python')
14 source=()
15 md5sums=()
16 _svntrunk=https://pyserial.svn.sourceforge.net/svnroot/pyserial/trunk/pyserial
17 _svnmod=pyserial
19 build() {
20   cd $startdir/src
21   if [ -d $_svnmod/.svn ]; then
22     (cd $_svnmod && svn up)
23   else
24     svn co $_svntrunk $_svnmod
25   fi
27   cp -r $_svnmod $_svnmod-build
28   cd $_svnmod-build
30   python setup.py install --root=$pkgdir
31   install -D -m644 LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE.txt