add glm
This commit is contained in:
parent
b68a480e60
commit
c5bca6fe45
1 changed files with 33 additions and 0 deletions
33
pkgs/glm/build.sh
Normal file
33
pkgs/glm/build.sh
Normal file
|
@ -0,0 +1,33 @@
|
|||
pkgname=glm
|
||||
pkgver=0.9.9.8
|
||||
|
||||
fetch() {
|
||||
curl -L "https://github.com/g-truc/glm/archive/refs/tags/$pkgver.tar.gz" -o $pkgname-$pkgver.tar.gz
|
||||
tar -xf $pkgname-$pkgver.tar.gz
|
||||
mkdir $pkgname-$pkgver/build
|
||||
}
|
||||
|
||||
build() {
|
||||
cd $pkgname-$pkgver
|
||||
cd build
|
||||
cmake -G Ninja ../ \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_INSTALL_LIBDIR=lib \
|
||||
-DCMAKE_CXX_FLAGS='-Wno-implicit-int-float-conversion -Wno-implicit-int-conversion'
|
||||
samu
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $pkgname-$pkgver
|
||||
install -d $pkgdir/usr/include
|
||||
cp -r ./glm $pkgdir/usr/include/
|
||||
install -d $pkgdir/usr/lib/pkgconfig
|
||||
cp ../../glm.pc $pkgdir/usr/lib/pkgconfig
|
||||
}
|
||||
|
||||
license() {
|
||||
cd $pkgname-$pkgver
|
||||
cat LICENSE
|
||||
# cat COPYING
|
||||
}
|
Loading…
Reference in a new issue