[arch-commits] Commit in glfw/repos (2 files)

Felix Yan felixonmars at archlinux.org
Fri Nov 9 21:37:44 UTC 2018


    Date: Friday, November 9, 2018 @ 21:37:43
  Author: felixonmars
Revision: 404715

archrelease: copy trunk to community-staging-x86_64

Added:
  glfw/repos/community-staging-x86_64/
  glfw/repos/community-staging-x86_64/PKGBUILD
    (from rev 404713, glfw/trunk/PKGBUILD)

----------+
 PKGBUILD |   77 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 77 insertions(+)

Copied: glfw/repos/community-staging-x86_64/PKGBUILD (from rev 404713, glfw/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-11-09 21:37:43 UTC (rev 404715)
@@ -0,0 +1,77 @@
+# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
+# Contributor: philefou <tuxication AT gmail DOT com>
+# Contributor: lindquist <tomas at famolsen.dk>
+# Contributor: Christoph Siegenthaler <csi at gmx.ch>
+# Contributor: Mihai Militaru <mihai.militaru at ephemeros.org>
+# Contributor: SpepS <dreamspepser at yahoo dot it>
+
+pkgbase=glfw
+pkgname=('glfw-x11' 'glfw-wayland' 'glfw-doc')
+pkgver=3.2.1
+pkgrel=2
+arch=('x86_64')
+url="http://www.glfw.org/"
+license=('custom:ZLIB')
+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=('91b8250b6edcc26c9f5205555070a504')
+
+build() {
+  cd "$srcdir/$pkgbase-$pkgver"
+
+  [[ -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-x11() {
+  pkgdesc="A free, open source, portable framework for graphical application development (x11)"
+  depends=('libxi' 'libxrandr' 'libxinerama' 'libxcursor' 'libgl')
+  replaces=('glfw')
+  conflicts=('glfw')
+  provides=('glfw')
+
+  cd "$srcdir/$pkgbase-$pkgver"/build-x11
+
+  make DESTDIR=$pkgdir install
+
+  cd ..
+  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')
+  conflicts=('glfw')
+  provides=('glfw')
+
+  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}/build-x11/docs/html" "${pkgdir}/usr/share/doc/glfw"
+}



More information about the arch-commits mailing list