mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-11 12:04:39 +08:00
42 lines
910 B
Bash
42 lines
910 B
Bash
|
#
|
||
|
# Chakra Packages for Chakra, part of chakra-project.org
|
||
|
#
|
||
|
# maintainer almack@chakra-project.org
|
||
|
# contributor Sven-Hendrik Haase <sh@lutzhaase.com>
|
||
|
|
||
|
pkgname=opencollada
|
||
|
pkgver=20140108
|
||
|
pkgrel=1
|
||
|
pkgdesc="Stream based reader and writer library for COLLADA files"
|
||
|
arch=('x86_64')
|
||
|
url="https://github.com/KhronosGroup/OpenCOLLADA"
|
||
|
license=('GPL')
|
||
|
depends=('libxml2' 'pcre')
|
||
|
makedepends=('git' 'cmake')
|
||
|
source=('opencollada.conf'
|
||
|
'git://github.com/KhronosGroup/OpenCOLLADA.git')
|
||
|
md5sums=('5f7e9d79ab86756648b648ee5ed6ce1d'
|
||
|
'SKIP')
|
||
|
|
||
|
build() {
|
||
|
cd "$srcdir"/OpenCOLLADA
|
||
|
|
||
|
[[ -d build ]] && rm -r build
|
||
|
mkdir build && cd build
|
||
|
|
||
|
cmake .. \
|
||
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||
|
-DUSE_SHARED=ON \
|
||
|
-DUSE_STATIC=OFF
|
||
|
make
|
||
|
}
|
||
|
|
||
|
package() {
|
||
|
cd "$srcdir"/OpenCOLLADA/build
|
||
|
|
||
|
make DESTDIR=$pkgdir install
|
||
|
|
||
|
install -Dm644 $srcdir/opencollada.conf $pkgdir/etc/ld.so.conf.d/opencollada.conf
|
||
|
}
|
||
|
|