# Contributor: Daniel Sabogal # Maintainer: pkgname=glfw pkgver=3.2.1 pkgrel=1 pkgdesc="Multi-platform library for OpenGL and Vulkan application development" url="http://www.glfw.org/" arch="all" license="zlib" depends="" depends_dev="libxinerama-dev linux-headers mesa-dev" makedepends="$depends_dev cmake libx11-dev libxcursor-dev libxrandr-dev" subpackages="$pkgname-dev" source="$pkgname-$pkgver.tar.gz::https://github.com/glfw/$pkgname/archive/$pkgver.tar.gz" builddir="$srcdir/$pkgname-$pkgver" build() { cd "$builddir" cmake . \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DBUILD_SHARED_LIBS=ON \ || return 1 make || return 1 } package() { cd "$builddir" make DESTDIR="$pkgdir/" install || return 1 } md5sums="91b8250b6edcc26c9f5205555070a504 glfw-3.2.1.tar.gz" sha256sums="e10f0de1384d75e6fc210c53e91843f6110d6c4f3afbfb588130713c2f9d8fe8 glfw-3.2.1.tar.gz" sha512sums="c7921f993b9a99b3b9421fefadb039cd475c42d85f5b5a35d7c5401c70491349bb885a02fd31e527de06a8b40d9d49a1fdb92c964e13c04ae092c6b98eb491dc glfw-3.2.1.tar.gz"