glm: install .pc file, fix noarch, don't install cmakelists
This commit is contained in:
parent
80fcd666fe
commit
f9cc27817d
2 changed files with 11 additions and 5 deletions
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'
|
# Template file for 'glm'
|
||||||
pkgname=glm
|
pkgname=glm
|
||||||
version=0.9.9.6
|
version=0.9.9.6
|
||||||
revision=1
|
revision=2
|
||||||
archs=noarch
|
archs=noarch
|
||||||
wrksrc=glm
|
wrksrc=glm
|
||||||
build_style=cmake
|
|
||||||
configure_args="-DGLM_TEST_ENABLE=OFF"
|
|
||||||
hostmakedepends="dos2unix unzip"
|
hostmakedepends="dos2unix unzip"
|
||||||
short_desc="C++ mathematics library for graphics programming"
|
short_desc="C++ mathematics library for graphics programming"
|
||||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||||
|
@ -22,8 +20,8 @@ do_install() {
|
||||||
for i in glm ; do
|
for i in glm ; do
|
||||||
vcopy $i usr/include
|
vcopy $i usr/include
|
||||||
done
|
done
|
||||||
vmkdir usr/lib
|
vmkdir usr/share/pkgconfig
|
||||||
vcopy build/glm/libglm_* usr/lib
|
vinstall ${FILESDIR}/glm.pc 644 usr/share/pkgconfig
|
||||||
}
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
|
@ -31,6 +29,7 @@ post_install() {
|
||||||
for f in $(find ${DESTDIR}/usr/include -type f); do
|
for f in $(find ${DESTDIR}/usr/include -type f); do
|
||||||
dos2unix "$f"
|
dos2unix "$f"
|
||||||
done
|
done
|
||||||
|
rm -f "${DESTDIR}/usr/include/CMakeLists.txt"
|
||||||
sed -n '88,110p' manual.md > LICENSE
|
sed -n '88,110p' manual.md > LICENSE
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue