Skip to content

Instantly share code, notes, and snippets.

@alexdewar
Created September 14, 2021 13:21
Show Gist options
  • Save alexdewar/6b51d6c98483b2e1e0101ddc1d71e7b6 to your computer and use it in GitHub Desktop.
Save alexdewar/6b51d6c98483b2e1e0101ddc1d71e7b6 to your computer and use it in GitHub Desktop.
# Maintainer: acxz <akashpatel2008 at yahoo dot com>
# Contributor: Sven Schneider <[email protected]>
pkgname=orocos-kdl-python
_dir=orocos_kinematics_dynamics
_pkgname=python_orocos_kdl
pkgver=1.5.1
pkgrel=1
pkgdesc="The Kinematics and Dynamics Library is a framework for modelling and computation of kinematic chains (Python binding)"
arch=('i686' 'x86_64')
url="https://www.orocos.org/kdl"
license=('GPL')
depends=('orocos-kdl' 'python-sip4')
makedepends=('cmake' 'sip4')
source=("https://github.com/orocos/${_dir}/archive/v${pkgver}.tar.gz"
)
sha512sums=('9774b76b755ea81168390643813789783f60d0b1cdb46cd250e3e0d27f75a6cf2fd3bfd2081c04e30a14ff4fc70d0080c9b43b82ee181c2dda82f23f052b338d')
build() {
cd "${srcdir}/${_dir}-${pkgver}/${_pkgname}"
mkdir -p build && cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr \
-DPYTHON_VERSION=3 \
..
make
}
package() {
cd "${srcdir}/${_dir}-${pkgver}/${_pkgname}/build"
make DESTDIR="${pkgdir}" install
find ${pkgdir}/usr -maxdepth 1 -type f -exec rm {} \;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment