]> git.immae.eu Git - perso/Immae/Config/AUR.git/commitdiff
Initial commit to AUR4
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Thu, 17 Sep 2015 16:37:28 +0000 (18:37 +0200)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Thu, 17 Sep 2015 16:37:28 +0000 (18:37 +0200)
.SRCINFO [new file with mode: 0644]
PKGBUILD [new file with mode: 0644]
cal3d-gcc43.diff [new file with mode: 0644]

diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644 (file)
index 0000000..fe01ad8
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = cal3d
+       pkgdesc = A skeletal-based 3D character animation library
+       pkgver = 0.11.0
+       pkgrel = 6
+       url = https://gna.org/projects/cal3d
+       arch = i686
+       arch = x86_64
+       license = GPL2
+       makedepends = patch
+       depends = gcc-libs
+       options = !libtool
+       source = http://download.gna.org/cal3d/sources/cal3d-0.11.0.tar.gz
+       source = cal3d-gcc43.diff
+       md5sums = 82ad09c1c28e73bc9596aec47237bfba
+       md5sums = f290fb54f844e044ae80165f083cf58f
+
+pkgname = cal3d
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644 (file)
index 0000000..c2b36ec
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,24 @@
+pkgname=cal3d
+pkgver=0.11.0
+pkgrel=6
+pkgdesc="A skeletal-based 3D character animation library"
+arch=(i686 x86_64)
+url="https://gna.org/projects/cal3d"
+options=(!libtool)
+license=(GPL2)
+depends=('gcc-libs')
+makedepends=('patch')
+source=(http://download.gna.org/cal3d/sources/cal3d-$pkgver.tar.gz cal3d-gcc43.diff)
+md5sums=('82ad09c1c28e73bc9596aec47237bfba'
+         'f290fb54f844e044ae80165f083cf58f')
+build() {
+  cd "${pkgname}-$pkgver"
+  patch -p0 < ../cal3d-gcc43.diff
+  ./configure --prefix=/usr
+  make
+}
+
+package() {
+  cd "${pkgname}-$pkgver"
+  make DESTDIR=${pkgdir} install
+}
diff --git a/cal3d-gcc43.diff b/cal3d-gcc43.diff
new file mode 100644 (file)
index 0000000..fc61235
--- /dev/null
@@ -0,0 +1,53 @@
+--- src/cal3d/hardwaremodel.cpp
++++ src/cal3d/hardwaremodel.cpp
+@@ -24,6 +24,7 @@
+ #include "cal3d/coreskeleton.h"
+ #include "cal3d/skeleton.h"
++#include <string.h>
+  /*****************************************************************************/
+ /** Constructs the hardware model instance.
+--- src/cal3d/platform.cpp
++++ src/cal3d/platform.cpp
+@@ -18,6 +18,8 @@
+ #include "cal3d/platform.h"
++#include <string.h>
++
+  /*****************************************************************************/
+ /** Constructs the platform instance.
+   *
+--- src/cal3d/renderer.cpp
++++ src/cal3d/renderer.cpp
+@@ -29,6 +29,8 @@
+ #include "cal3d/coresubmesh.h"
+ #include "cal3d/physique.h"
++#include <string.h>
++
+  /*****************************************************************************/
+ /** Constructs the renderer instance.
+   *
+--- src/cal3d/submesh.cpp
++++ src/cal3d/submesh.cpp
+@@ -16,6 +16,7 @@
+ #include "cal3d/error.h"
+ #include "cal3d/coresubmesh.h"
++#include <string.h>
+ CalSubmesh::CalSubmesh(CalCoreSubmesh* coreSubmesh)
+ {
+--- src/cal3d_converter.cpp
++++ src/cal3d_converter.cpp
+@@ -11,6 +11,8 @@
+ #include "cal3d/cal3d.h"
++#include <strings.h>
++
+ #define SKELETON 0
+ #define MESH 1
+ #define ANIMATION 2