use clang

This commit is contained in:
acxz 2020-12-24 12:10:33 -05:00
parent b2e9ef5ec7
commit bc4149a98e
2 changed files with 12 additions and 4 deletions

View file

@ -1,11 +1,17 @@
pkgbase = ignition-physics pkgbase = ignition-physics
pkgdesc = Abstract physics interface designed to support simulation and rapid development of robot applications. pkgdesc = Abstract physics interface designed to support simulation and rapid development of robot applications.
pkgver = 3.1.0 pkgver = 3.1.0
pkgrel = 1 pkgrel = 2
url = https://ignitionrobotics.org/libs/physics url = https://ignitionrobotics.org/libs/physics
arch = x86_64 arch = x86_64
license = Apache license = Apache
makedepends = cmake 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 source = ignition-physics-3.1.0.tar.gz::https://github.com/ignitionrobotics/ign-physics/archive/ignition-physics3_3.1.0.tar.gz
sha256sums = b8e5460d2808e20237b2ee0a6a6b7613b56412f5f6e2a5e153e48e8faae8ab77 sha256sums = b8e5460d2808e20237b2ee0a6a6b7613b56412f5f6e2a5e153e48e8faae8ab77

View file

@ -2,13 +2,14 @@
pkgname=ignition-physics pkgname=ignition-physics
pkgver=3.1.0 pkgver=3.1.0
pkgrel=1 pkgrel=2
pkgdesc="Abstract physics interface designed to support simulation and rapid pkgdesc="Abstract physics interface designed to support simulation and rapid
development of robot applications." development of robot applications."
arch=('x86_64') arch=('x86_64')
url="https://ignitionrobotics.org/libs/physics" url="https://ignitionrobotics.org/libs/physics"
license=('Apache') license=('Apache')
depends=() depends=('ignition-cmake' 'ignition-math' 'ignition-plugin' 'ignition-common'
'dartsim' 'sdformat')
makedepends=('cmake') makedepends=('cmake')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/ignitionrobotics/ign-physics/archive/${pkgname}3_${pkgver}.tar.gz") source=("${pkgname}-${pkgver}.tar.gz::https://github.com/ignitionrobotics/ign-physics/archive/${pkgname}3_${pkgver}.tar.gz")
sha256sums=('b8e5460d2808e20237b2ee0a6a6b7613b56412f5f6e2a5e153e48e8faae8ab77') sha256sums=('b8e5460d2808e20237b2ee0a6a6b7613b56412f5f6e2a5e153e48e8faae8ab77')
@ -25,6 +26,8 @@ build() {
cmake .. -DCMAKE_BUILD_TYPE="Release" \ cmake .. -DCMAKE_BUILD_TYPE="Release" \
-DCMAKE_INSTALL_PREFIX="${pkgdir}/usr" \ -DCMAKE_INSTALL_PREFIX="${pkgdir}/usr" \
-DCMAKE_INSTALL_LIBDIR="lib" \ -DCMAKE_INSTALL_LIBDIR="lib" \
-DCMAKE_C_COMPILER=clang \
-DCMAKE_CXX_COMPILER=clang++ \
-DBUILD_TESTING=OFF -DBUILD_TESTING=OFF
# Compile # Compile
@ -33,6 +36,5 @@ build() {
package() { package() {
cd "$srcdir/$_dir/build" cd "$srcdir/$_dir/build"
#make DESTDIR="$pkgdir/" install
make install make install
} }