blob: 76cfe3ee8791a4b16e9170a6ca9d7f77fc754b9a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# $Id: PKGBUILD 100620 2013-11-06 13:54:05Z svenstaro $
# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
pkgname=box2d
pkgver=2.3.0
pkgrel=1
pkgdesc="2D rigid body simulation library for games"
url="http://www.box2d.org/"
license=('zlib')
arch=('i686' 'x86_64' 'mips64el')
#depends=('freeglut')
makedepends=('cmake' 'doxygen')
optdepends=()
source=(svn+http://box2d.googlecode.com/svn/tags/v${pkgver})
md5sums=('SKIP')
build() {
cd ${srcdir}/v${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 ${srcdir}/v${pkgver}/Box2D
cd Documentation
doxygen
cd ../build
make DESTDIR=${pkgdir} install
install -Dm644 ${srcdir}/v${pkgver}/Box2D/License.txt ${pkgdir}/usr/share/licenses/box2d/LICENSE
}
# vim: sw=2 ts=2 et:
|