commit b2e9ef5ec778b4fbfe5ad062b7ce8e280a842a06 Author: acxz <17132214+acxz@users.noreply.github.com> Date: Wed Dec 9 22:50:05 2020 -0500 create ignition-physics package diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 00000000000..c0766f404cc --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = ignition-physics + pkgdesc = Abstract physics interface designed to support simulation and rapid development of robot applications. + pkgver = 3.1.0 + pkgrel = 1 + url = https://ignitionrobotics.org/libs/physics + arch = x86_64 + license = Apache + makedepends = cmake + source = ignition-physics-3.1.0.tar.gz::https://github.com/ignitionrobotics/ign-physics/archive/ignition-physics3_3.1.0.tar.gz + sha256sums = b8e5460d2808e20237b2ee0a6a6b7613b56412f5f6e2a5e153e48e8faae8ab77 + +pkgname = ignition-physics + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 00000000000..95f644a4489 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: acxz + +pkgname=ignition-physics +pkgver=3.1.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=() +makedepends=('cmake') +source=("${pkgname}-${pkgver}.tar.gz::https://github.com/ignitionrobotics/ign-physics/archive/${pkgname}3_${pkgver}.tar.gz") +sha256sums=('b8e5460d2808e20237b2ee0a6a6b7613b56412f5f6e2a5e153e48e8faae8ab77') + +_dir="ign-physics-${pkgname}3_${pkgver}" + +build() { + cd "$srcdir/$_dir" + + mkdir -p build + cd build + + # Configure build + cmake .. -DCMAKE_BUILD_TYPE="Release" \ + -DCMAKE_INSTALL_PREFIX="${pkgdir}/usr" \ + -DCMAKE_INSTALL_LIBDIR="lib" \ + -DBUILD_TESTING=OFF + + # Compile + make +} + +package() { + cd "$srcdir/$_dir/build" + #make DESTDIR="$pkgdir/" install + make install +}