From bc4149a98e5a0c25c41a5c137f8c619176bc2141 Mon Sep 17 00:00:00 2001 From: acxz <17132214+acxz@users.noreply.github.com> Date: Thu, 24 Dec 2020 12:10:33 -0500 Subject: [PATCH] use clang --- .SRCINFO | 8 +++++++- PKGBUILD | 8 +++++--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index c0766f404cc..ad13bf56482 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,11 +1,17 @@ pkgbase = ignition-physics pkgdesc = Abstract physics interface designed to support simulation and rapid development of robot applications. pkgver = 3.1.0 - pkgrel = 1 + pkgrel = 2 url = https://ignitionrobotics.org/libs/physics arch = x86_64 license = Apache makedepends = cmake + depends = ignition-cmake + depends = ignition-math + depends = ignition-plugin + depends = ignition-common + depends = dartsim + depends = sdformat source = ignition-physics-3.1.0.tar.gz::https://github.com/ignitionrobotics/ign-physics/archive/ignition-physics3_3.1.0.tar.gz sha256sums = b8e5460d2808e20237b2ee0a6a6b7613b56412f5f6e2a5e153e48e8faae8ab77 diff --git a/PKGBUILD b/PKGBUILD index 95f644a4489..0cd70685108 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -2,13 +2,14 @@ pkgname=ignition-physics pkgver=3.1.0 -pkgrel=1 +pkgrel=2 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=() +depends=('ignition-cmake' 'ignition-math' 'ignition-plugin' 'ignition-common' + 'dartsim' 'sdformat') makedepends=('cmake') source=("${pkgname}-${pkgver}.tar.gz::https://github.com/ignitionrobotics/ign-physics/archive/${pkgname}3_${pkgver}.tar.gz") sha256sums=('b8e5460d2808e20237b2ee0a6a6b7613b56412f5f6e2a5e153e48e8faae8ab77') @@ -25,6 +26,8 @@ build() { cmake .. -DCMAKE_BUILD_TYPE="Release" \ -DCMAKE_INSTALL_PREFIX="${pkgdir}/usr" \ -DCMAKE_INSTALL_LIBDIR="lib" \ + -DCMAKE_C_COMPILER=clang \ + -DCMAKE_CXX_COMPILER=clang++ \ -DBUILD_TESTING=OFF # Compile @@ -33,6 +36,5 @@ build() { package() { cd "$srcdir/$_dir/build" - #make DESTDIR="$pkgdir/" install make install }