# Maintainer: acxz pkgname=ignition-physics pkgver=4.2.0 pkgrel=1 pkgdesc="Abstract physics interface designed to support simulation and rapid development of robot applications." arch=('x86_64') url="https://ignitionrobotics.org/libs/physics" license=('Apache') depends=('ignition-cmake' 'ignition-math' 'ignition-plugin' 'ignition-common' 'libdart' 'sdformat') makedepends=('cmake') source=("${pkgname}-${pkgver}.tar.gz::https://github.com/ignitionrobotics/ign-physics/archive/${pkgname}4_${pkgver}.tar.gz") sha256sums=('3c902441d919542aab5effc2f8a72e05b8e77b8821fe5bde7cc775c36ea009ff') _dir="ign-physics-${pkgname}4_${pkgver}" build() { cd "$srcdir/$_dir" mkdir -p build cd build cmake .. -DCMAKE_BUILD_TYPE="Release" \ -DCMAKE_INSTALL_PREFIX="/usr" \ -DCMAKE_INSTALL_LIBDIR="lib" \ -DBUILD_TESTING=OFF make } package() { cd "$srcdir/$_dir/build" make DESTDIR="${pkgdir}/" install }