summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7b3ed35ba56aa4357defb56057078f216b7cdd1d (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
# Maintainer: Andrzej Giniewicz <gginiu@gmail.com>
pkgname=fbx-conv-git
pkgver=r187.2be464f
pkgrel=1
pkgdesc="Command line utility using the FBX SDK to convert FBX/Collada/Obj files to a custom text/binary format for static, keyframed and skinned meshes."
arch=('i686' 'x86_64')
url="https://github.com/libgdx/fbx-conv"
license=('apache')
depends=('fbx-sdk' 'gcc-libs')
makedepends=('git' 'premake')
source=('fbx-conv::git+https://github.com/libgdx/fbx-conv.git')
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/${pkgname%-git}"

  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "$srcdir/${pkgname%-git}"

  unset LDFLAGS
  unset CXXFLAGS
  unset CPPFLAGS
  unset CFLAGS
  unset MAKEFLAGS
  FBX_SDK_ROOT="/usr" ./generate_makefile
  cd build/gmake
  make
}

package() {
  cd "$srcdir/${pkgname%-git}"
  install -D fbx-conv "$pkgdir/usr/bin/fbx-conv"
}