[arch-commits] Commit in glfw/trunk (PKGBUILD)

Sven-Hendrik Haase svenstaro at archlinux.org
Thu Jun 2 23:50:29 UTC 2016


    Date: Friday, June 3, 2016 @ 01:50:28
  Author: svenstaro
Revision: 177770

upgpkg: glfw 3.2-1

upstream release 3.2

Modified:
  glfw/trunk/PKGBUILD

----------+
 PKGBUILD |   54 ++++++++++++++++++++++++++++++++++++++++--------------
 1 file changed, 40 insertions(+), 14 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-06-02 21:07:48 UTC (rev 177769)
+++ PKGBUILD	2016-06-02 23:50:28 UTC (rev 177770)
@@ -6,34 +6,47 @@
 # Contributor: Mihai Militaru <mihai.militaru at ephemeros.org>
 # Contributor: SpepS <dreamspepser at yahoo dot it>
 
-pkgname=('glfw' 'glfw-doc')
-pkgver=3.1.2
+pkgbase=glfw
+pkgname=('glfw-x11' 'glfw-wayland' 'glfw-doc')
+pkgver=3.2
 pkgrel=1
 arch=('i686' 'x86_64')
 url="http://www.glfw.org/"
 license=('custom:ZLIB')
-depends=('libgl' 'libxrandr' 'glu' 'xorg-xinput' 'libxxf86vm' 'libxcursor')
-makedepends=('mesa' 'cmake' 'doxygen')
-source=("http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2")
-md5sums=('0bf912994a920ce7a2d8172b3438bcfe')
+makedepends=('mesa' 'cmake' 'doxygen' 'vulkan-headers' 'vulkan-icd-loader'
+             'extra-cmake-modules' 'wayland-protocols' 'libxi' 'libxrandr'
+             'libxcursor' 'libxkbcommon' 'libxinerama')
+source=("https://github.com/glfw/glfw/archive/${pkgver}.tar.gz")
+md5sums=('a4a7248d771717a84c8997b7b712cd57')
 
 build() {
-  cd "$srcdir/$pkgname-$pkgver"
+  cd "$srcdir/$pkgbase-$pkgver"
 
-  [[ -d build ]] && rm -r build
-  mkdir build && cd build
+  [[ -d build-x11 ]] && rm -r build-x11
+  mkdir build-x11 && cd build-x11
 
   cmake .. \
       -DCMAKE_INSTALL_PREFIX=/usr \
       -DBUILD_SHARED_LIBS=ON
   make docs
+
+  cd ..
+
+  [[ -d build-wayland ]] && rm -r build-wayland
+  mkdir build-wayland && cd build-wayland
+
+  cmake .. \
+      -DCMAKE_INSTALL_PREFIX=/usr \
+      -DBUILD_SHARED_LIBS=ON \
+      -DGLFW_USE_WAYLAND=ON
 }
 
-package_glfw() {
-  pkgdesc="A free, open source, portable framework for OpenGL application development"
-  cd "$srcdir/$pkgname-$pkgver"
+package_glfw-x11() {
+  pkgdesc="A free, open source, portable framework for graphical application development (x11)"
+  depends=('libxi' 'libxrandr' 'libxinerama' 'libxcursor' 'libgl')
 
-  cd build
+  cd "$srcdir/$pkgbase-$pkgver"/build-x11
+
   make DESTDIR=$pkgdir install
 
   cd ..
@@ -40,8 +53,21 @@
   install -Dm644 COPYING.txt "$pkgdir/usr/share/licenses/$pkgname/COPYING"
 }
 
+package_glfw-wayland() {
+  pkgdesc="A free, open source, portable framework for graphical application development (wayland)"
+  depends=('wayland' 'libxkbcommon' 'libgl')
+
+  cd "$srcdir/$pkgbase-$pkgver"/build-wayland
+
+  make DESTDIR=$pkgdir install
+
+  cd ..
+  install -Dm644 COPYING.txt "$pkgdir/usr/share/licenses/$pkgname/COPYING"
+}
+
 package_glfw-doc() {
   pkgdesc="Set of HTML documentation for GLFW"
+
   mkdir -p "${pkgdir}/usr/share/doc/glfw/"
-  cp -r "${srcdir}/glfw-${pkgver}/docs/html" "${pkgdir}/usr/share/doc/glfw"
+  cp -r "${srcdir}/glfw-${pkgver}/build-x11/docs/html" "${pkgdir}/usr/share/doc/glfw"
 }



More information about the arch-commits mailing list