summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorRicardo Vieira2015-06-11 16:23:42 +0100
committerRicardo Vieira2015-06-11 16:23:42 +0100
commit7bdd7bf435188f7ea953ef2da741b107e74a8761 (patch)
tree32c9acc28b4cdc4efaf20af2e83b1bafef53f5c9
downloadaur-7bdd7bf435188f7ea953ef2da741b107e74a8761.tar.gz
Import from AURv3
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD43
2 files changed, 61 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..d0e280fffc4
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = glfw3-git
+ pkgdesc = A free, open source, portable framework for OpenGL application development. (git version)
+ pkgver = 3.1.1.r87.g08b3af4
+ pkgrel = 1
+ url = http://www.glfw.org/
+ arch = any
+ license = custom:ZLIB
+ makedepends = cmake
+ makedepends = git
+ depends = libxi
+ depends = libgl
+ depends = libxrandr
+ conflicts = glfw
+ source = glfw::git+https://github.com/glfw/glfw.git#branch=master
+ md5sums = SKIP
+
+pkgname = glfw3-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..873933784b6
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,43 @@
+# Contributor: Axper Jan <483ken _at_ gmail _dot_ com
+# Contributor: Daniel Kirchner <ekpyron at lavabit dot com>
+# Maintainer: Ricardo Vieira <ricardo.vieira@tecnico.ulisboa.pt>
+_pkgname=glfw
+pkgname=glfw3-git
+pkgver=3.1.1.r87.g08b3af4
+pkgrel=1
+pkgdesc="A free, open source, portable framework for OpenGL application development. (git version)"
+arch=('any')
+url="http://www.glfw.org/"
+license=('custom:ZLIB')
+depends=('libxi' 'libgl' 'libxrandr')
+optionaldepends=('doxygen: build glfw html documentation')
+makedepends=('cmake' 'git')
+conflicts=('glfw')
+source=("$_pkgname"::'git+https://github.com/glfw/glfw.git#branch=master')
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/$_pkgname"
+ git describe --long | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "$srcdir/$_pkgname"
+ cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DBUILD_SHARED_LIBS=ON \
+ -DGLFW_BUILD_EXAMPLES=OFF \
+ -DGLFW_BUILD_TESTS=OFF \
+ -DGLFW_USE_WAYLAND=OFF \
+ -Wno-dev \
+ .
+ make
+}
+
+package() {
+ cd "$srcdir/$_pkgname"
+ make DESTDIR="$pkgdir" install
+ install -D -m644 COPYING.txt "${pkgdir}/usr/share/licenses/${_pkgname}/COPYING"
+}
+
+# vim:set ts=2 sw=2 et: