aboutsummaryrefslogtreecommitdiffstats
path: root/main/glfw/APKBUILD
blob: 0fded922e5add2822688b105ea76805fec724431 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Maintainer: Daniel Sabogal <dsabogalcc@gmail.com>
pkgname=glfw
pkgver=3.2.1
pkgrel=2
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"