aur/PKGBUILD

37 lines
967 B
Bash
Raw Permalink Normal View History

2020-12-10 04:50:05 +01:00
# Maintainer: acxz <akashpatel2008 at yahoo dot com>
pkgname=ignition-physics
pkgver=5.2.0
pkgrel=1
2020-12-10 04:50:05 +01:00
pkgdesc="Abstract physics interface designed to support simulation and rapid
development of robot applications."
arch=('x86_64')
url="https://gazebosim.org/libs/physics"
2020-12-10 04:50:05 +01:00
license=('Apache')
2020-12-24 18:10:33 +01:00
depends=('ignition-cmake' 'ignition-math' 'ignition-plugin' 'ignition-common'
2020-12-25 19:04:30 +01:00
'libdart' 'sdformat')
2020-12-30 20:20:44 +01:00
makedepends=('cmake')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/gazebosim/gz-physics/archive/${pkgname}5_${pkgver}.tar.gz")
sha256sums=('75acb91a17c2a4988d50848355a771cfa49235ff2eb9500951c10eacc945b4d0')
2020-12-10 04:50:05 +01:00
_dir="gz-physics-${pkgname}5_${pkgver}"
2020-12-30 20:12:02 +01:00
2020-12-10 04:50:05 +01:00
build() {
cd "$srcdir/$_dir"
mkdir -p build
cd build
cmake .. -DCMAKE_BUILD_TYPE="Release" \
2020-12-30 20:12:02 +01:00
-DCMAKE_INSTALL_PREFIX="/usr" \
2020-12-10 04:50:05 +01:00
-DCMAKE_INSTALL_LIBDIR="lib" \
-DBUILD_TESTING=OFF
make
}
package() {
cd "$srcdir/$_dir/build"
2020-12-30 20:12:02 +01:00
make DESTDIR="${pkgdir}/" install
2020-12-10 04:50:05 +01:00
}