[arch-commits] Commit in reactphysics3d/trunk (PKGBUILD reactphysics3d.pc)
Alexander Rødseth
arodseth at archlinux.org
Sat Mar 14 10:51:25 UTC 2020
Date: Saturday, March 14, 2020 @ 10:51:25
Author: arodseth
Revision: 596595
upgpkg: reactphysics3d 0.7.1-3
Added:
reactphysics3d/trunk/reactphysics3d.pc
Modified:
reactphysics3d/trunk/PKGBUILD
-------------------+
PKGBUILD | 14 +++++++++-----
reactphysics3d.pc | 9 +++++++++
2 files changed, 18 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-03-14 10:46:35 UTC (rev 596594)
+++ PKGBUILD 2020-03-14 10:51:25 UTC (rev 596595)
@@ -3,7 +3,7 @@
pkgbase=reactphysics3d
pkgname=(reactphysics3d reactphysics3d-docs)
pkgver=0.7.1
-pkgrel=2
+pkgrel=3
pkgdesc='Physics engine'
arch=(x86_64)
url='https://www.reactphysics3d.com'
@@ -11,10 +11,12 @@
makedepends=(cmake ninja)
source=("https://github.com/DanielChappuis/reactphysics3d/releases/download/v$pkgver/reactphysics3d-$pkgver.tar.gz"
"https://www.reactphysics3d.com/documentation/manual/ReactPhysics3D-UserManual.pdf"
- "cmake.patch::https://github.com/DanielChappuis/reactphysics3d/commit/94076513166704edafd0567b438fa52c05569e25.patch")
+ "cmake.patch::https://github.com/DanielChappuis/reactphysics3d/commit/94076513166704edafd0567b438fa52c05569e25.patch"
+ "$pkgbase.pc")
sha256sums=('9e55cc79882120297974b331b81c55fa8e4a6802057e55c3922ed301dd83a20a'
'7c6307724bfef92f351150d522fb1a9050400f404e0a3be231946d2b633cb1bd'
- 'c3046803795f4072a6067a24bfb1af9927bc1c71866a570390e71f04bedcf376')
+ 'c3046803795f4072a6067a24bfb1af9927bc1c71866a570390e71f04bedcf376'
+ '673dbd5bbee66d8a0f357fbc46cd56eb070088bbf30a5efeee7e5162ef4450a1')
prepare() {
# Prepare to build a shared library
@@ -33,7 +35,8 @@
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_INSTALL_LIBDIR=lib \
- -D RP3D_DOUBLE_PRECISION_ENABLED="True" \
+ -D RP3D_DOUBLE_PRECISION_ENABLED=ON \
+ -D RP3D_COMPILE_TESTS=ON \
-G Ninja
ninja
}
@@ -41,12 +44,13 @@
package_reactphysics3d() {
depends=(gcc-libs)
DESTDIR="$pkgdir" ninja -C build install
+ install -Dm 644 "$pkgbase.pc" \
+ "$pkgdir/usr/lib/pkgconfig/$pkgbase.pc"
install -Dm 644 "$pkgbase-$pkgver/LICENSE" \
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
package_reactphysics3d-docs() {
- #arch=(any)
pkgdesc='Physics engine (user manual)'
install -Dm 644 "ReactPhysics3D-UserManual.pdf" \
"$pkgdir/usr/share/doc/$pkgname/UserManual.pdf"
Added: reactphysics3d.pc
===================================================================
--- reactphysics3d.pc (rev 0)
+++ reactphysics3d.pc 2020-03-14 10:51:25 UTC (rev 596595)
@@ -0,0 +1,9 @@
+prefix=/usr
+libdir=${prefix}/lib
+includedir=${prefix}/include/reactphysics3d
+
+Name: reactphysics3d
+Description: ReactPhysics3D headers
+Version: 0.7.1
+Cflags: -I${includedir}
+Libs: -L${libdir} -lreactphysics3d
More information about the arch-commits
mailing list