summaryrefslogtreecommitdiff
path: root/community/assimp/PKGBUILD
blob: 215c165f529a134a75d7c049e329f5bb6879880f (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
# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
# Contributor: jepaan <jepaan at hotmail dot com>

pkgname=assimp
pkgver=3.0
pkgrel=1
pkgdesc="Portable Open Source library to import various well-known 3D model formats in an uniform manner"
arch=('i686' 'x86_64')
license=('BSD')
depends=('libxmu')
makedepends=('cmake' 'boost' 'freeglut')
url=('http://assimp.sourceforge.net/index.html')
source=("http://downloads.sourceforge.net/assimp/assimp-${pkgver}-src.tar.gz")
md5sums=('2cb57a3f9c9930dc3320a93670ec6fdf')

build() {
	cd ${srcdir}
	mkdir build
    cd build
	cmake ../${pkgname}-${pkgver} \
		-DCMAKE_INSTALL_PREFIX=/usr
	make 
}

package()  {
	cd ${srcdir}/build

	make DESTDIR=$pkgdir install
	install -Dm644 ${srcdir}/${pkgname}-${pkgver}/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}