glm: install .pc file, fix noarch, don't install cmakelists
This commit is contained in:
parent
80fcd666fe
commit
f9cc27817d
7
srcpkgs/glm/files/glm.pc
Normal file
7
srcpkgs/glm/files/glm.pc
Normal file
@ -0,0 +1,7 @@
|
||||
prefix=/usr
|
||||
includedir=${prefix}/include
|
||||
|
||||
Name: GLM
|
||||
Description: OpenGL Mathematics
|
||||
Version: 0.9.9.6
|
||||
Cflags: -I${includedir}
|
@ -1,11 +1,9 @@
|
||||
# Template file for 'glm'
|
||||
pkgname=glm
|
||||
version=0.9.9.6
|
||||
revision=1
|
||||
revision=2
|
||||
archs=noarch
|
||||
wrksrc=glm
|
||||
build_style=cmake
|
||||
configure_args="-DGLM_TEST_ENABLE=OFF"
|
||||
hostmakedepends="dos2unix unzip"
|
||||
short_desc="C++ mathematics library for graphics programming"
|
||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||
@ -22,8 +20,8 @@ do_install() {
|
||||
for i in glm ; do
|
||||
vcopy $i usr/include
|
||||
done
|
||||
vmkdir usr/lib
|
||||
vcopy build/glm/libglm_* usr/lib
|
||||
vmkdir usr/share/pkgconfig
|
||||
vinstall ${FILESDIR}/glm.pc 644 usr/share/pkgconfig
|
||||
}
|
||||
|
||||
post_install() {
|
||||
@ -31,6 +29,7 @@ post_install() {
|
||||
for f in $(find ${DESTDIR}/usr/include -type f); do
|
||||
dos2unix "$f"
|
||||
done
|
||||
rm -f "${DESTDIR}/usr/include/CMakeLists.txt"
|
||||
sed -n '88,110p' manual.md > LICENSE
|
||||
vlicense LICENSE
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user