diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2016-11-08 11:30:07 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2016-11-08 11:30:07 +0000 |
commit | 81e46f6e53feeb30ae79fa614e7dc74843d96b19 (patch) | |
tree | 79c923986ac9b5b5fe0cfb4f031db569f9c678e6 /main/glfw/APKBUILD | |
parent | c6555956db1a880cc0c33e41f49ff0e999797b4f (diff) | |
download | aports-81e46f6e53feeb30ae79fa614e7dc74843d96b19.tar.bz2 aports-81e46f6e53feeb30ae79fa614e7dc74843d96b19.tar.xz |
main/glfw: move from testing
needed by mupdf
Diffstat (limited to 'main/glfw/APKBUILD')
-rw-r--r-- | main/glfw/APKBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/main/glfw/APKBUILD b/main/glfw/APKBUILD new file mode 100644 index 0000000000..e6856d3692 --- /dev/null +++ b/main/glfw/APKBUILD @@ -0,0 +1,35 @@ +# Contributor: Daniel Sabogal <dsabogalcc@gmail.com> +# 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" |