blob: 6b67beea84f139dfc22743ac4cc52695f9276a6c (
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
|
# Maintainer: Andrew Chen <andrew.chuanye.chen@gmail.com>
pkgname=liquidfun
pkgver=1.1.0
pkgrel=2
pkgdesc="A 2D rigid-body and fluid simulation C++ library for games based upon Box2D"
arch=('i686' 'x86_64')
url="https://google.github.io/liquidfun/"
license=('box2d')
depends=('libglapi' 'glu')
makedepends=('cmake' 'doxygen')
provides=('box2d')
conflicts=('box2d')
replaces=('box2d')
source=("https://github.com/google/liquidfun/releases/download/v1.1.0/liquidfun-1.1.0.tar.gz")
md5sums=('0a81c5e0f45b32f73dd064cc87fc0ba2')
build() {
cd "$srcdir/liquidfun/Box2D"
mkdir build
cd build
cmake .. \
-DBOX2D_INSTALL=ON \
-DBOX2D_INSTALL_DOC=ON \
-DBOX2D_BUILD_SHARED=ON \
-DBOX2D_BUILD_STATIC=OFF \
-DBOX2D_BUILD_EXAMPLES=OFF \
-DBOX2D_BUILD_UNITTESTS=OFF \
-DCMAKE_INSTALL_PREFIX=/usr &&
make
cd ../Documentation
doxygen
}
package() {
cd "$srcdir/liquidfun/Box2D"
cd build
make DESTDIR=${pkgdir} install
}
# vim:set ts=2 sw=2 et:
|