[arch-commits] Commit in box2d/repos (extra-x86_64 extra-x86_64/PKGBUILD)

Andreas Radke andyrtr at archlinux.org
Tue Jan 26 19:40:39 UTC 2021


    Date: Tuesday, January 26, 2021 @ 19:40:38
  Author: andyrtr
Revision: 406801

archrelease: copy trunk to extra-x86_64

Added:
  box2d/repos/extra-x86_64/
  box2d/repos/extra-x86_64/PKGBUILD
    (from rev 406800, box2d/trunk/PKGBUILD)

----------+
 PKGBUILD |   44 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)

Copied: box2d/repos/extra-x86_64/PKGBUILD (from rev 406800, box2d/trunk/PKGBUILD)
===================================================================
--- extra-x86_64/PKGBUILD	                        (rev 0)
+++ extra-x86_64/PKGBUILD	2021-01-26 19:40:38 UTC (rev 406801)
@@ -0,0 +1,44 @@
+# Maintainer: Sven-Hendrik Haase <svenstaro at gmail.com>
+
+pkgname=box2d
+pkgver=2.4.1
+pkgrel=1
+pkgdesc="2D rigid body simulation library for games"
+url="http://www.box2d.org/"
+license=('MIT')
+arch=('x86_64')
+depends=('gcc-libs')
+makedepends=('cmake' 'doxygen' 'ninja')
+# We're going to this alternate fork until the patches are upstreamed.
+# See https://github.com/erincatto/box2d/issues/621
+#source=("$pkgname-$pkgver.tar.gz::https://github.com/erincatto/Box2D/archive/v${pkgver}.tar.gz"
+source=("$pkgname-$pkgver.tar.gz::https://github.com/erincatto/box2d/archive/v2.4.1.tar.gz")
+sha512sums=('d900f925b77906777719c91488bdc5e2df1ad1f4a8ca39a574229f5e57070e3a843bdd7530e817112605fde6d82145c872d8afdfc65b84531a73199098c81162')
+
+build() {
+  cd $pkgname-$pkgver
+
+  cmake . \
+    -Bbuild \
+    -GNinja \
+    -DBOX2D_BUILD_DOCS=ON \
+    -DBOX2D_BUILD_TESTBED=OFF \
+    -DBUILD_SHARED_LIBS=ON \
+    -DCMAKE_INSTALL_PREFIX=/usr
+  ninja -C build
+}
+
+check() {
+  cd $pkgname-$pkgver
+
+  build/bin/unit_test
+}
+
+package() {
+  cd $pkgname-$pkgver
+
+  DESTDIR="$pkgdir" ninja -C build install
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/box2d/LICENSE
+}
+
+# vim: sw=2 ts=2 et:



More information about the arch-commits mailing list