void-packages/srcpkgs/glm/template

34 lines
870 B
Bash

# Template file for 'glm'
pkgname=glm
version=0.9.9.8
revision=2
build_style=cmake
hostmakedepends="dos2unix unzip"
short_desc="C++ mathematics library for graphics programming"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="http://glm.g-truc.net"
distfiles="https://github.com/g-truc/glm/releases/download/${version}/glm-${version}.zip"
checksum=37e2a3d62ea3322e43593c34bae29f57e3e251ea89f4067506c94043769ade4c
# No longer has install target
# Install manually
do_install() {
local i
vmkdir usr/include
vcopy glm usr/include
vmkdir usr/lib/cmake
vcopy cmake/glm usr/lib/cmake
vmkdir usr/share/pkgconfig
vinstall ${FILESDIR}/glm.pc 644 usr/share/pkgconfig
}
post_install() {
local f
for f in $(find ${DESTDIR}/usr/include -type f); do
dos2unix "$f"
done
rm "${DESTDIR}/usr/include/glm/CMakeLists.txt"
vlicense copying.txt LICENSE
}