#Packager: Panagiotis Papasotiriou
pkgname=glfw pkgver=3.3.8 pkgrel=1pp source=("https://github.com/glfw/glfw/releases/download/$pkgver/$pkgname-$pkgver.zip") sourcetemplate=http://people.salixos.org/papasot/salix/$pkgname url="http://www.glfw.org" docs=("README.md") slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "GLFW (OpenGL framework)" "GLFW is a free, Open Source, multi-platform library for opening a" "window, creating an OpenGL context and managing input. It is easy to" "integrate into existing applications and does not lay claim to the" "main loop." "GLFW is written in C and has native support for Windows, Mac OS X and" "many Unix-like systems using the X Window System, such as Linux and" "FreeBSD." "" "HomePage: http://www.glfw.org" ) build() { cd $startdir/src/$pkgname-$pkgver mkdir -p glfw-build cd glfw-build cmake -DCMAKE_INSTALL_PREFIX=/usr \ -DBUILD_SHARED_LIBS=ON \ -DGLFW_BUILD_DOCS=ON \ -DGLFW_BUILD_EXAMPLES=OFF \ -DGLFW_BUILD_TESTS=OFF \ -DGLFW_INSTALL=ON \ -DGLFW_USE_OSMESA=OFF \ -DGLFW_USE_WAYLAND=OFF \ -DGLFW_VULKAN_STATIC=OFF \ -DCMAKE_BUILD_TYPE=Release .. make -j $numjobs || exit 1 make install DESTDIR=$startdir/pkg mkdir -p $startdir/pkg/usr/doc/$pkgname-$pkgver cp -r ./docs/html $startdir/pkg/usr/doc/$pkgname-$pkgver cd .. }