contrib/glm/Pkgfile

33 lines
1.0 KiB
Plaintext
Raw Normal View History

2019-08-11 11:13:55 +02:00
# Description: C++ mathematics library for 3D software based on the OpenGL Shading Language (GLSL) specification
# URL: http://glm.g-truc.net
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: cmake
name=glm
2020-01-06 13:11:23 +01:00
version=0.9.9.7
2019-08-11 11:13:55 +02:00
release=1
2020-01-06 14:45:53 +01:00
source=(https://github.com/g-truc/glm/archive/$version/$name-$version.tar.gz
2020-01-06 13:11:23 +01:00
glm.pc.in
glmConfig.cmake.in
glmConfigVersion.cmake.in
glmTargets.cmake)
2019-08-11 11:13:55 +02:00
build() {
2020-01-06 14:45:53 +01:00
cd $name-$version
2020-01-06 13:11:23 +01:00
mkdir -p $PKG/usr/include/
cp -r glm $PKG/usr/include/
mkdir -p $PKG/usr/share/doc
cp -r doc $PKG/usr/share/doc/glm
mkdir -p $PKG/usr/lib/pkgconfig/
sed s/@VERSION@/$version/ $SRC/glm.pc.in > $PKG/usr/lib/pkgconfig/glm.pc
mkdir -p $PKG/usr/lib/cmake/glm/
sed s/@VERSION@/$version/ $SRC/glmConfigVersion.cmake.in > $PKG/usr/lib/cmake/glm/glmConfigVersion.cmake
sed s/@VERSION@/$version/ $SRC/glmConfig.cmake.in > $PKG/usr/lib/cmake/glm/glmConfig.cmake
install -Dm644 $SRC/glmTargets.cmake $PKG/usr/lib/cmake/glm/glmTargets.cmake
rm -r $PKG/usr/share/
2019-08-11 11:13:55 +02:00
}