pakur.sh 771 B

1234567891011121314
  1. mkdir -p "${PKG}"/usr/include/
  2. cp -r glm "${PKG}"/usr/include/
  3. # For some stupid reason, glm upstream removed the CMake install target here:
  4. # https://github.com/g-truc/glm/commit/5f352ecce21bb1ab37fa56fac0f383c779b351a3
  5. # There is no reasoning for it. Discussion here: https://github.com/g-truc/glm/issues/947
  6. mkdir -p "${PKG}"/usr/lib/pkgconfig/
  7. sed "s/@VERSION@/${surum}/" "${SRC}"/glm.pc.in > "${PKG}"/usr/lib/pkgconfig/glm.pc
  8. mkdir -p "${PKG}"/usr/lib/cmake/glm/
  9. sed "s/@VERSION@/${surum}/" "${SRC}"/glmConfigVersion.cmake.in > "${PKG}"/usr/lib/cmake/glm/glmConfigVersion.cmake
  10. sed "s/@VERSION@/${surum}/" "${SRC}"/glmConfig.cmake.in > "${PKG}"/usr/lib/cmake/glm/glmConfig.cmake
  11. install -Dm644 "${SRC}"/glmTargets.cmake "${PKG}"/usr/lib/cmake/glm/glmTargets.cmake