# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
# Contributor: Peter Hatina <phatina AT gmail.com>
pkgname=glm
pkgver=0.9.3.4
pkgrel=1
pkgdesc="C++ mathematics library for 3D software based on the OpenGL Shading Language (GLSL) specification"
arch=('any')
license=('GPL')
source=("http://sourceforge.net/projects/ogl-math/files/glm-$pkgver/glm-$pkgver.zip")
url="http://glm.g-truc.net"
md5sums=('a0cea0871bd39f2d628c12f1181faffb')

package() {
    cd $pkgname-$pkgver
    mkdir -p $pkgdir/usr/include/glm
    mkdir -p $pkgdir/usr/share/doc
    cp -r glm $pkgdir/usr/include
    cp -r doc $pkgdir/usr/share/doc/glm
    rm -f $pkgdir/usr/include/glm/CMakeLists.txt
    find $pkgdir -type f -exec chmod 644 {} \;
    find $pkgdir -type d -exec chmod 755 {} \;
}
