1 # Maintainer: alorewotik <paraparapampam@gmail.com>
3 pkgname=lunatic-python-bzr
6 pkgdesc="Bidirectional Lua-Python bridge"
7 url="http://labix.org/lunatic-python"
10 depends=('python2' 'lua')
12 source=(1-pep-353.patch
14 3-subscript-panic.patch)
15 md5sums=('b03c9d0c13c01a7564b03d2a1858f836'
16 '6ec24030166a7a6493b4a65faaeb4256'
17 'a5cd7207f5893fc84446760fa7b0ccca')
18 _bzrbranch=lp:~hircus/lunatic-python
25 msg "Connecting to the server...."
27 if [ -d $_bzrmod ] ; then
28 cd $_bzrmod && bzr pull -q
29 msg "The local files are updated."
31 bzr branch $_bzrbranch/$_bzrmod -q
34 msg "BZR checkout done or server timeout"
35 msg "Starting make..."
37 rm -rf ${_bzrmod}-build
38 cp -r ${_bzrmod} ${_bzrmod}-build
41 for _patch in "${srcdir}"/*.patch ; do
42 patch -Np0 -i "${_patch}"
44 # patch -Np0 -i "${srcdir}/pep353.patch"
45 # patch -Np0 -i "${srcdir}/del-segfault.patch"
46 # patch -Np0 -i "${srcdir}/subscript-panic.patch"
47 python2 setup.py build
48 python2 setup.py install -O1 --skip-build --prefix="${pkgdir}"/usr
53 install -D -m644 "${pkgdir}"/usr/lib/{python2.7/site-packages/python.so,lua/5.1/python.so}
55 cd "${srcdir}/${_bzrmod}-build"
56 install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"