[arch-commits] Commit in box2d/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Fri Nov 9 21:36:44 UTC 2018
Date: Friday, November 9, 2018 @ 21:36:43
Author: foutrelis
Revision: 404705
archrelease: copy trunk to community-staging-x86_64
Added:
box2d/repos/community-staging-x86_64/
box2d/repos/community-staging-x86_64/PKGBUILD
(from rev 404703, box2d/trunk/PKGBUILD)
----------+
PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
Copied: box2d/repos/community-staging-x86_64/PKGBUILD (from rev 404703, box2d/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2018-11-09 21:36:43 UTC (rev 404705)
@@ -0,0 +1,43 @@
+# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
+
+pkgname=box2d
+pkgver=2.3.1
+pkgrel=4
+pkgdesc="2D rigid body simulation library for games"
+url="http://www.box2d.org/"
+license=('zlib')
+arch=('x86_64')
+#depends=('freeglut')
+makedepends=('cmake' 'doxygen' 'subversion')
+optdepends=()
+source=("https://github.com/erincatto/Box2D/archive/v${pkgver}.tar.gz")
+md5sums=('70e25df706e848dbe611ca5b5c07a4ae')
+
+build() {
+ cd Box2D-${pkgver}/Box2D
+
+ msg "Starting build"
+ [[ -d build ]] && rm -r build
+ mkdir build && cd build
+ cmake .. \
+ -DBOX2D_INSTALL=ON \
+ -DBOX2D_INSTALL_DOC=ON \
+ -DBOX2D_BUILD_SHARED=ON \
+ -DBOX2D_BUILD_STATIC=OFF \
+ -DBOX2D_BUILD_EXAMPLES=OFF \
+ -DCMAKE_INSTALL_PREFIX=/usr
+ make
+}
+
+package() {
+ cd Box2D-${pkgver}/Box2D/Documentation
+
+ doxygen
+
+ cd ../build
+
+ make DESTDIR=${pkgdir} install
+
+ install -Dm644 ../License.txt ${pkgdir}/usr/share/licenses/box2d/LICENSE
+}
+# vim: sw=2 ts=2 et:
More information about the arch-commits
mailing list