updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / shedskin-svn / PKGBUILD
blob58e1335436d5949b1c7742d751460700e790e095
1 # Contributor: Alexander Rødseth <rodseth@gmail.com>
2 pkgname=shedskin-svn
3 pkgver=1507
4 pkgrel=1
5 pkgdesc="A Python to C++ compiler"
6 arch=('any')
7 url="http://code.google.com/p/shedskin/"
8 license=('GPL2')
9 depends=('pcre' 'gc' 'python2')
10 makedepends=('subversion' 'python2')
11 provides=('shedskin=0.5')
12 conflicts=('shedskin')
13 _svntrunk=http://shedskin.googlecode.com/svn/trunk/
14 _svnmod=shedskin
15 source=("python27.patch")
16 md5sums=('fbda0b3ebaae7446d7420e9d9bc8007f')
18 build() {
19   cd "$srcdir"
21   # Checking out from SVN
22   if [ -d "$_svnmod/.svn" ]; then
23     (cd "$_svnmod" && svn up -r "$pkgver")
24   else
25     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
26   fi
27   msg "SVN checkout done or server timeout"
29   # Install the wrapperscript
30   mkdir -p "$pkgdir/usr/bin"
31   cd shedskin/scripts
32   install -D -m755 shedskin "$pkgdir/usr/bin/shedskin"
34   cd ..
36   # Python 2.7 support
37   patch -p0 < $srcdir/python27.patch || return 1
39   # Install using setup.py
40   python2 setup.py install --prefix="$pkgdir/usr"
42   # Install the license
43   cd doc
44   install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
46 # vim:set ts=2 sw=2 et: