blob: 1a891197dafea6488caa300e35d742b0a4811b19 (
plain)
1 # Description: C++ mathematics library for 3D software based on the OpenGL Shading Language (GLSL) specification
2 # URL: http://glm.g-truc.net
3 # Maintainer: Tim Biermann, tbier at posteo dot de
4 # Depends on:
5
6 name=glm
7 version=0.9.9.8
8 release=1
9 source=(https://github.com/g-truc/glm/archive/$version/$name-$version.tar.gz
10 glm.pc.in glmConfig.cmake.in glmConfigVersion.cmake.in
11 glmTargets.cmake)
12
13 build() {
14 cd $name-$version
15 mkdir -p $PKG/usr/include/
16 cp -r glm $PKG/usr/include/
17
18 mkdir -p $PKG/usr/lib/pkgconfig/
19 sed "s/@VERSION@/$version/" $SRC/glm.pc.in > $PKG/usr/lib/pkgconfig/glm.pc
20
21 mkdir -p $PKG/usr/lib/cmake/glm/
22 sed "s/@VERSION@/$version/" $SRC/glmConfigVersion.cmake.in > $PKG/usr/lib/cmake/glm/glmConfigVersion.cmake
23 sed "s/@VERSION@/$version/" $SRC/glmConfig.cmake.in > $PKG/usr/lib/cmake/glm/glmConfig.cmake
24 install -Dm644 $SRC/glmTargets.cmake $PKG/usr/lib/cmake/glm/glmTargets.cmake
25 }
|