1 # Contributor: Alexander Lam <moar.spam.rite.nao <at> gmail <dot> com>
6 pkgdesc='Robotics libraries & drivers'
8 url='http://gearbox.sourceforge.net'
9 license=('LGPL' 'GPL' 'EPL')
10 depends=('boost-libs')
11 makedepends=('cmake' 'boost')
12 install=gearbox.install
13 source=("http://sourceforge.net/projects/gearbox/files/gearbox/10.11/${pkgname}-${pkgver}.tar.gz")
14 md5sums=('05433ba6f0f4d335dc948291d209235d')
17 cd "${srcdir}/${pkgname}-${pkgver}"
19 sed -i 's/GET_FILENAME_COMPONENT (boostPythonLib ${Boost_PYTHON_LIBRARY} NAME_WE CACHE)/GET_FILENAME_COMPONENT (boostPythonLib "${Boost_PYTHON_LIBRARY}" NAME_WE CACHE)/' src/hokuyo_aist/python/CMakeLists.txt
20 cmake -DCMAKE_INSTALL_PREFIX=/usr -DGEARBOX_INSTALL=/usr .
25 cd "${srcdir}/${pkgname}-${pkgver}"
26 mkdir -p ${pkgdir}/etc/ld.so.conf.d/
27 echo /usr/lib/gearbox > ${pkgdir}/etc/ld.so.conf.d/gearbox
28 make DESTDIR="${pkgdir}" install