summaryrefslogtreecommitdiff
path: root/libre/opencollada/PKGBUILD
diff options
context:
space:
mode:
authorMárcio Alexandre Silva Delgado <coadde@lavabit.com>2013-04-23 16:46:34 -0300
committerMárcio Alexandre Silva Delgado <coadde@lavabit.com>2013-04-23 16:46:34 -0300
commitd1855068612e0cbdb0e5c5a3b13f666f85afb6e3 (patch)
treeeeb29a441dacb968ecdd1bea97cb0f6d7c330c33 /libre/opencollada/PKGBUILD
parentc3f6423889d3531d5daf6bc49effb7975e96a808 (diff)
downloadabslibre-d1855068612e0cbdb0e5c5a3b13f666f85afb6e3.tar.gz
abslibre-d1855068612e0cbdb0e5c5a3b13f666f85afb6e3.tar.bz2
abslibre-d1855068612e0cbdb0e5c5a3b13f666f85afb6e3.zip
opencollada: add package to libre repo, due that this package is adapted for the blender-libre package
Diffstat (limited to 'libre/opencollada/PKGBUILD')
-rw-r--r--libre/opencollada/PKGBUILD52
1 files changed, 52 insertions, 0 deletions
diff --git a/libre/opencollada/PKGBUILD b/libre/opencollada/PKGBUILD
new file mode 100644
index 000000000..2cf700e1f
--- /dev/null
+++ b/libre/opencollada/PKGBUILD
@@ -0,0 +1,52 @@
+# Maintainer: Márcio Silva <coadde@lavabit.com>
+
+pkgname=opencollada
+pkgver=20130305
+pkgrel=1
+pkgdesc="Stream based reader and writer library for COLLADA files (built for the blender-libre package)"
+arch=(
+ i686
+ x86_64
+ mips64el
+)
+url=https://github.com/KhronosGroup/OpenCOLLADA
+license=GPL
+depends=(
+ libxml2
+ pcre
+)
+makedepends=(
+ git
+ cmake
+)
+source=git://github.com/KhronosGroup/OpenCOLLADA.git
+sha512sums=SKIP
+
+prepare() {
+ cd $srcdir/OpenCOLLADA
+
+ # adapt source to last blender release
+ git reset --hard da9f1c3d5da28d475f35ff1175d60cb74fa0f661 # Tue Mar 5 11:30:27 2013 +0100
+
+ [[ -d build ]] && rm -r build
+ mkdir build
+}
+
+build() {
+ cd $srcdir/OpenCOLLADA/build
+
+ setarch $CARCH cmake .. -DCMAKE_INSTALL_PREFIX=/usr
+ setarch $CARCH make
+}
+
+package() {
+ cd $srcdir/OpenCOLLADA/build
+
+ setarch $CARCH make DESTDIR=$pkgdir install
+
+ install -d $pkgdir/etc/ld.so.conf.d
+ echo /usr/lib/$pkgname > $pkgdir/etc/ld.so.conf.d/$pkgname.conf
+}
+
+# vim:set ts=2 sw=2 et:
+