mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-09 18:47:14 +08:00
25 lines
929 B
Bash
25 lines
929 B
Bash
#Contrbution from Arch:https://projects.archlinux.org/svntogit/community.git/plain/trunk/PKGBUILD?h=packages/glm
|
|
pkgname=glm
|
|
pkgver=0.9.6.3
|
|
pkgrel=1
|
|
pkgdesc="C++ mathematics library for 3D software based on the OpenGL Shading Language (GLSL) specification"
|
|
arch=('any')
|
|
license=('MIT')
|
|
url="http://glm.g-truc.net"
|
|
source=("http://sourceforge.net/projects/ogl-math/files/glm-$pkgver/glm-$pkgver.zip")
|
|
md5sums=('acd0b517c37ed25c3f11ee155ee8257e')
|
|
|
|
package() {
|
|
cd $pkgname
|
|
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 {} \;
|
|
|
|
install -Dm644 util/FindGLM.cmake $pkgdir/usr/share/cmake-3.2/Modules/FindGLM.cmake
|
|
install -Dm644 copying.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE
|
|
}
|