Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (19 sloc) 837 Bytes
pkgname=glm
pkgver=0.9.8.5
pkgrel=1
url="https://github.com/g-truc/glm.git"
source=("https://github.com/g-truc/glm/releases/download/0.9.8.5/glm-0.9.8.5.zip")
sha256sums=('9f9f520ec7fb8c20c69d6b398ed928a2448c6a3245cbedb8631a56a987c38660')
build() {
cd glm
# GCC 7.3 fix borrowed from Arch Linux: https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/glm
# The current release version of glm has this bug, but it's fixed in git master - should be possible to remove this in GLM 0.9.9.x.
sed -i "s/(__GNUC__ == 7) && (__GNUC_MINOR__ == 2)/(__GNUC__ == 7) \&\& (__GNUC_MINOR__ >= 2)/" glm/simd/platform.h
mkdir build && cd build
cmake .. -DCMAKE_TOOLCHAIN_FILE=$VITASDK/share/vita.toolchain.cmake -DCMAKE_INSTALL_PREFIX=$prefix
make
}
package () {
cd glm/build
make DESTDIR=$pkgdir install
}