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

Sven-Hendrik Haase svenstaro at archlinux.org
Mon Sep 5 19:13:14 UTC 2016


    Date: Monday, September 5, 2016 @ 19:13:14
  Author: svenstaro
Revision: 188598

upgpkg: box2d 2.3.1-3

Fix source

Modified:
  box2d/trunk/PKGBUILD

----------+
 PKGBUILD |   17 ++++++++---------
 1 file changed, 8 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-09-05 18:59:45 UTC (rev 188597)
+++ PKGBUILD	2016-09-05 19:13:14 UTC (rev 188598)
@@ -3,7 +3,7 @@
 
 pkgname=box2d
 pkgver=2.3.1
-pkgrel=2
+pkgrel=3
 pkgdesc="2D rigid body simulation library for games"
 url="http://www.box2d.org/"
 license=('zlib')
@@ -11,15 +11,15 @@
 #depends=('freeglut')
 makedepends=('cmake' 'doxygen' 'subversion')
 optdepends=()
-source=("${pkgname}-${pkgver}::svn+http://box2d.googlecode.com/svn/tags/v${pkgver}")
-md5sums=('SKIP')
+source=("https://github.com/erincatto/Box2D/archive/v${pkgver}.tar.gz")
+md5sums=('70e25df706e848dbe611ca5b5c07a4ae')
 
 build() {
-  cd ${srcdir}/${pkgname}-${pkgver}/Box2D
- 
+  cd Box2D-${pkgver}/Box2D
+
   msg "Starting build"
   [[ -d build ]] && rm -r build
-  mkdir build && cd build 
+  mkdir build && cd build
 	cmake .. \
     -DBOX2D_INSTALL=ON \
     -DBOX2D_INSTALL_DOC=ON \
@@ -31,9 +31,8 @@
 }
 
 package() {
-  cd ${srcdir}/${pkgname}-${pkgver}/Box2D
+  cd Box2D-${pkgver}/Box2D/Documentation
 
-  cd Documentation
   doxygen
 
   cd ../build
@@ -40,6 +39,6 @@
 
   make DESTDIR=${pkgdir} install
 
-  install -Dm644 ${srcdir}/${pkgname}-${pkgver}/Box2D/License.txt ${pkgdir}/usr/share/licenses/box2d/LICENSE
+  install -Dm644 ../License.txt ${pkgdir}/usr/share/licenses/box2d/LICENSE
 }
 # vim: sw=2 ts=2 et:



More information about the arch-commits mailing list