#Packager: Panagiotis Papasotiriou
pkgname=glfw pkgver=3.4 pkgrel=1pp source=("https://github.com/glfw/glfw/releases/download/$pkgver/$pkgname-$pkgver.zip") sourcetemplate=https://people.salixos.org/papasot/slackel/$pkgname url="https://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: https://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=OFF \ -DGLFW_BUILD_EXAMPLES=OFF \ -DGLFW_BUILD_TESTS=OFF \ -DGLFW_BUILD_X11=ON \ -DGLFW_BUILD_WAYLAND=ON \ -DGLFW_INSTALL=ON \ -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 .. }