[arch-commits] Commit in box2d/trunk (PKGBUILD)

Sven-Hendrik Haase svenstaro at archlinux.org
Thu Jan 23 02:20:38 UTC 2020


    Date: Thursday, January 23, 2020 @ 02:20:37
  Author: svenstaro
Revision: 554663

upgpkg: box2d 2.3.1-5: Modernize package a bit

Modified:
  box2d/trunk/PKGBUILD

----------+
 PKGBUILD |   18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-01-23 01:13:22 UTC (rev 554662)
+++ PKGBUILD	2020-01-23 02:20:37 UTC (rev 554663)
@@ -1,8 +1,8 @@
-# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
+# Maintainer: Sven-Hendrik Haase <svenstaro at gmail.com>
 
 pkgname=box2d
 pkgver=2.3.1
-pkgrel=4
+pkgrel=5
 pkgdesc="2D rigid body simulation library for games"
 url="http://www.box2d.org/"
 license=('zlib')
@@ -11,14 +11,15 @@
 makedepends=('cmake' 'doxygen' 'subversion')
 optdepends=()
 source=("https://github.com/erincatto/Box2D/archive/v${pkgver}.tar.gz")
-md5sums=('70e25df706e848dbe611ca5b5c07a4ae')
+md5sums=('20f1e128f99ddb1634c2ba55a959feb2')
 
+prepare() {
+  mkdir box2d-${pkgver}/Box2D/build
+}
+
 build() {
-  cd Box2D-${pkgver}/Box2D
+  cd box2d-${pkgver}/Box2D/build
 
-  msg "Starting build"
-  [[ -d build ]] && rm -r build
-  mkdir build && cd build
 	cmake .. \
     -DBOX2D_INSTALL=ON \
     -DBOX2D_INSTALL_DOC=ON \
@@ -30,7 +31,7 @@
 }
 
 package() {
-  cd Box2D-${pkgver}/Box2D/Documentation
+  cd box2d-${pkgver}/Box2D/Documentation
 
   doxygen
 
@@ -40,4 +41,5 @@
 
   install -Dm644 ../License.txt ${pkgdir}/usr/share/licenses/box2d/LICENSE
 }
+
 # vim: sw=2 ts=2 et:



More information about the arch-commits mailing list