summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 152b6bc9760473af7d15c4ec2d9dc2e5c76beed6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Maintainer: Sven Schneider <archlinux.sandmann@googlemail.com>

pkgname=openrtm-aist-python
pkgver=1.1.0
pkgrel=1
pkgdesc="Python bindings for OpenRTM-aist"
arch=('i686' 'x86_64')
url="http://www.openrtm.org"
license=('GPL')
depends=('omniorb' 'python2')
source=("http://www.openrtm.org/pub/OpenRTM-aist/python/${pkgver}/OpenRTM-aist-Python-${pkgver}-RC1.tar.gz")
md5sums=('bbc9c4915d13cef0f5a925a070bab0aa')

build() {
	cd ${srcdir}/OpenRTM-aist-Python-${pkgver}
	
	sed 's/-bpython/-p -bpython/g' -i setup.py

	# Fix for Python 2 scripts
	sed -i "s,env python *$,env python2,g" $(find . -type f -and -iname "*.py")
	sed -i "s,/usr/bin/python *$,/usr/bin/env python2,g" $(find . -iname "*.py")
	
	python2 setup.py sdist
	python2 setup.py build
}

package() {
	cd ${srcdir}/OpenRTM-aist-Python-${pkgver}
	
	python2 setup.py install --root=${pkgdir} --optimize=1
}