Date: Thursday, June 16, 2022 @ 15:21:14 Author: andyrtr Revision: 448807
archrelease: copy trunk to testing-x86_64 Added: mesa-demos/repos/testing-x86_64/ mesa-demos/repos/testing-x86_64/LICENSE (from rev 448806, mesa-demos/trunk/LICENSE) mesa-demos/repos/testing-x86_64/PKGBUILD (from rev 448806, mesa-demos/trunk/PKGBUILD) mesa-demos/repos/testing-x86_64/mesa-demos.install (from rev 448806, mesa-demos/trunk/mesa-demos.install) mesa-demos/repos/testing-x86_64/meson-demos_data_dir.patch (from rev 448806, mesa-demos/trunk/meson-demos_data_dir.patch) ----------------------------+ LICENSE | 82 +++++++++++++++++++++++++++++++++++++++++++ PKGBUILD | 70 ++++++++++++++++++++++++++++++++++++ mesa-demos.install | 6 +++ meson-demos_data_dir.patch | 12 ++++++ 4 files changed, 170 insertions(+) Copied: mesa-demos/repos/testing-x86_64/LICENSE (from rev 448806, mesa-demos/trunk/LICENSE) =================================================================== --- testing-x86_64/LICENSE (rev 0) +++ testing-x86_64/LICENSE 2022-06-16 15:21:14 UTC (rev 448807) @@ -0,0 +1,82 @@ +Disclaimer + +Mesa is a 3-D graphics library with an API which is very similar to +that of OpenGL* +To the extent that Mesa utilizes the OpenGL command syntax or state +machine, it is being used with authorization from Silicon Graphics, +Inc.(SGI). However, the author does not possess an OpenGL license +from SGI, and makes no claim that Mesa is in any way a compatible +replacement for OpenGL or associated with SGI. Those who want a +licensed implementation of OpenGL should contact a licensed +vendor. + +Please do not refer to the library as MesaGL (for legal +reasons). It's just Mesa or The Mesa 3-D graphics +library + +* OpenGL is a trademark of Silicon Graphics Incorporated. + +License / Copyright Information + +The Mesa distribution consists of several components. Different copyrights +and licenses apply to different components. For example, GLUT is copyrighted +by Mark Kilgard, some demo programs are copyrighted by SGI, some of the Mesa +device drivers are copyrighted by their authors. See below for a list of +Mesa's main components and the license for each. + +The core Mesa library is licensed according to the terms of the MIT license. +This allows integration with the XFree86, Xorg and DRI projects. + +The default Mesa license is as follows: + +Copyright (C) 1999-2007 Brian Paul All Rights Reserved. + +Permission is hereby granted, free of charge, to any person obtaining a +copy of this software and associated documentation files (the "Software"), +to deal in the Software without restriction, including without limitation +the rights to use, copy, modify, merge, publish, distribute, sublicense, +and/or sell copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included +in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN +AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +Attention, Contributors + +When contributing to the Mesa project you must agree to the licensing terms +of the component to which you're contributing. +The following section lists the primary components of the Mesa distribution +and their respective licenses. + + +Mesa Component Licenses + +Component Location Primary Author License +---------------------------------------------------------------------------- +Main Mesa code src/mesa/ Brian Paul Mesa (MIT) + +Device drivers src/mesa/drivers/* See drivers See drivers + +Ext headers include/GL/glext.h SGI SGI Free B + include/GL/glxext.h + +GLUT src/glut/ Mark Kilgard Mark's copyright + +Mesa GLU library src/glu/mesa/ Brian Paul GNU-LGPL + +SGI GLU library src/glu/sgi/ SGI SGI Free B + +demo programs progs/demos/ various see source files + +X demos progs/xdemos/ Brian Paul see source files + +SGI demos progs/samples/ SGI SGI copyright + +RedBook demos progs/redbook/ SGI SGI copyright Copied: mesa-demos/repos/testing-x86_64/PKGBUILD (from rev 448806, mesa-demos/trunk/PKGBUILD) =================================================================== --- testing-x86_64/PKGBUILD (rev 0) +++ testing-x86_64/PKGBUILD 2022-06-16 15:21:14 UTC (rev 448807) @@ -0,0 +1,70 @@ +# Maintainer: Andreas Radke <andy...@archlinux.org> + +pkgbase=mesa-demos +pkgname=('mesa-demos' 'mesa-utils') +pkgver=8.5.0 +pkgrel=2 +arch=('x86_64') +url="https://www.mesa3d.org/" +license=('custom') +makedepends=('meson' 'mesa' 'glu' 'freeglut' 'wayland-protocols') +options=('debug') +source=(https://archive.mesa3d.org/demos/${pkgver}/mesa-demos-${pkgver}.tar.bz2{,.sig} + 'LICENSE' + meson-demos_data_dir.patch) +sha512sums=('df6a7f09638ca389d6e8bc569e599dcc59c9aa280bcfb95976d83e5cd3edfe74bb3a31f0953956dc16faa540ee5b09990e3377e1341d836fc527e50ace6e60b8' + 'SKIP' + '25da77914dded10c1f432ebcbf29941124138824ceecaf1367b3deedafaecabc082d463abcfa3d15abff59f177491472b505bcb5ba0c4a51bb6b93b4721a23c2' + 'fe5cedcb4ecee4d792ea1e3fa8724ca65b8528babd0e3207ee4a584aa27509cd7f65ed4ef08335c5e220cfb9216f2c20c3b1da1a3d7a9cce3f7192908430d8c5') +#validpgpkeys=('E390B9700582FAEA959ACAD41EEF53D38A3A9C67') # "Andreas Boll <andreas.boll....@gmail.com>" +validpgpkeys=('FF4CF638C624C3CF21ED2CF227EF763A2AA39F96') # Erik Faye-Lund <erik.faye-l...@collabora.com> + +prepare() { + cd ${pkgname}-${pkgver} + # FS#75063 - https://gitlab.freedesktop.org/mesa/demos/-/issues/26 + patch -Np1 -i ../meson-demos_data_dir.patch +} + +build() { + + arch-meson mesa-demos-$pkgver build \ + -D gles1=disabled \ + -D with-system-data-files=true + + # Print config + meson configure build + + meson compile -C build +} + +check() { + meson test -C build --print-errorlogs +} + +package_mesa-demos() { + pkgdesc="Mesa demos" + depends=('libgl' 'glu' 'freeglut') + install=mesa-demos.install + + DESTDIR="$pkgdir" meson install -C build + + # add missing egl files + install -m 0755 build/src/egl/opengl/{eglgears_wayland,eglgears_x11,eglkms,egltri_wayland,egltri_x11,peglgears,xeglgears,xeglthreads} "${pkgdir}/usr/bin/" + + # remove utils + rm "${pkgdir}"/usr/bin/{glxinfo,glxgears,eglinfo} + + install -Dm 0644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/" +} + +package_mesa-utils() { + pkgdesc="Essential Mesa utilities" + depends=('libgl') + provides=('glxinfo' 'glxgears' 'eglinfo') + + + install -Dm 0755 build/src/egl/opengl/eglinfo -t "${pkgdir}/usr/bin/" + install -Dm 0755 build/src/xdemos/{glxinfo,glxgears} -t "${pkgdir}/usr/bin/" + + install -Dm 0644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/" +} Copied: mesa-demos/repos/testing-x86_64/mesa-demos.install (from rev 448806, mesa-demos/trunk/mesa-demos.install) =================================================================== --- testing-x86_64/mesa-demos.install (rev 0) +++ testing-x86_64/mesa-demos.install 2022-06-16 15:21:14 UTC (rev 448807) @@ -0,0 +1,6 @@ +post_upgrade() { + if [ "`vercmp $2 8.4.0-5`" -lt 0 ]; then + echo ">>> glxinfo, eglinfo and glxgears are now part of" + echo ">>> the new \"mesa-utils\" package." + fi +} Copied: mesa-demos/repos/testing-x86_64/meson-demos_data_dir.patch (from rev 448806, mesa-demos/trunk/meson-demos_data_dir.patch) =================================================================== --- testing-x86_64/meson-demos_data_dir.patch (rev 0) +++ testing-x86_64/meson-demos_data_dir.patch 2022-06-16 15:21:14 UTC (rev 448807) @@ -0,0 +1,12 @@ +diff -pudr 1/meson.build 2/meson.build +--- 1/meson.build 2022-06-16 13:22:14.416192318 +0300 ++++ 2/meson.build 2022-06-16 13:23:08.790303478 +0300 +@@ -29,7 +29,7 @@ null_dep = dependency('', required : fal + + demos_data_dir = '../data/' + if get_option('with-system-data-files') +- demos_data_dir = get_option('datadir') / 'mesa-demos' ++ demos_data_dir = get_option('prefix') / get_option('datadir') / 'mesa-demos' / '' + endif + add_project_arguments( + '-DDEMOS_DATA_DIR="@0@"'.format(demos_data_dir),