summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bf43448610cfac08ee6a3bfa601a53157f965561 (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
33
34
35
# Maintainer: Sven Schneider <archlinux.sandmann@googlemail.com>

pkgname=orocos-kdl-python2
_pkgname=orocos_kinematics_dynamics
pkgver=1.4.0
pkgrel=1
pkgdesc="The Kinematics and Dynamics Library is a framework for modelling and computation of kinematic chains (Python2 binding)"
arch=('i686' 'x86_64')
url="http://www.orocos.org/kdl"
license=('GPL')
depends=('orocos-kdl' 'python2')
makedepends=('cmake' 'python2-sip')
source=(https://github.com/orocos/${_pkgname}/archive/v${pkgver}.tar.gz)
sha512sums=('7156465e2aff02f472933617512069355836a03a02d4587cfe03c1b1d667a9762a4e3ed6e055b2a44f1fce1b6746179203c7204389626a7b458dcab1b28930d8')

build() {
  cd "${srcdir}/${_pkgname}-${pkgver}/python_orocos_kdl"
	
  # determine python's site-package directory
  _packagesdir=`python2 -c "import distutils.sysconfig; print(distutils.sysconfig.get_python_lib(plat_specific=1))"`
	
  # specify python2 manually
  cmake -DCMAKE_INSTALL_PREFIX=/usr \
    -DPYTHON_EXECUTABLE=/usr/bin/python2 \
    -DPython_ADDITIONAL_VERSIONS="2.7;2.6;2.5;2.4;2.3;2.2;2.1;2.0" \
    -DPYTHON_SITE_PACKAGES_INSTALL_DIR=${_packagesdir} .
  make
}

package() {
  cd "${srcdir}/${_pkgname}-${pkgver}/python_orocos_kdl"

  make DESTDIR="${pkgdir}" install
}