updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / gearbox / PKGBUILD
blob9e23a8961e87cb4f0de6e84a913ad6115155e20d
1 # Contributor: Alexander Lam <moar.spam.rite.nao <at> gmail <dot> com>
3 pkgname=gearbox
4 pkgver=10.11
5 pkgrel=2
6 pkgdesc='Robotics libraries & drivers'
7 arch=('i686' 'x86_64')
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')
16 build() {
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 .
21   make
24 package() {
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