# Contributor: Daniel Sabogal # Maintainer: pkgname=glfw pkgver=3.2 pkgrel=0 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="a4a7248d771717a84c8997b7b712cd57 glfw-3.2.tar.gz" sha256sums="cb3aab46757981a39ae108e5207a1ecc4378e68949433a2b040ce2e17d8f6aa6 glfw-3.2.tar.gz" sha512sums="55982cba8b6605fe5489f7396fb5101f3eedd121d13a51ab8178e4bd2c8b348a8b7869fcd00dbefe5725b5c04942318c2a99f13832da4bfa74db42ab2812f3a2 glfw-3.2.tar.gz"