summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 20c97ad1f6118a31c6fbf4f72f56e5b08a78e883 (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
# Maintainer: Otto Naderer <otto.naderer@openmailbox.org>
pkgname=irrdynamics
pkgver=11.41d9752
pkgrel=1
pkgdesc="A light-weight Bullet Physics wrapper for the Irrlicht graphics engine"
arch=(i686 x86_64 armv7h armv6h)
url="https://socialg.it/ottona/irrdynamics"
license=('zlib')
groups=()
depends=(bullet irrlicht)
makedepends=('git')
source=("git+https://socialg.it/ottona/irrdynamics.git")
md5sums=("SKIP")

_gitname=irrdynamics

build() {
  cd "$srcdir/$_gitname"
  make config=release
}

package() {
  cd "$srcdir/$_gitname"
  mkdir -p "$pkgdir/usr/lib/"
  mkdir -p "$pkgdir/usr/include/irrDynamics"
  pwd
  install lib/* "$pkgdir/usr/lib/"
  install include/* "$pkgdir/usr/include/irrDynamics"
}

pkgver() {
  cd $_gitname
  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}