blob: a747aa393a22d3829dfcc78acf45f2622d053984 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# Maintainer: Rafał Kozdrój <kozeid2@gmail.com>
# Contributor: Felix Yan <felixonmars@archlinux.org>
_pkgname=lib32-libglvnd
pkgname=$_pkgname-git
pkgver=1.3.0.r34.g42a25c1
pkgrel=1
pkgdesc="The GL Vendor-Neutral Dispatch library"
arch=('x86_64')
url="https://github.com/NVIDIA/libglvnd"
license=('custom:BSD-like')
makedepends=('lib32-libx11' 'lib32-libxext' 'xorgproto' 'python' 'meson' 'git')
provides=('lib32-libgl' 'lib32-libegl' 'lib32-libgles' "$_pkgname=$pkgver")
conflicts=("$_pkgname")
source=("git+https://gitlab.freedesktop.org/glvnd/libglvnd.git")
sha512sums=('SKIP')
pkgver() {
cd libglvnd
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
export CC='gcc -m32'
export CXX='g++ -m32'
export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
arch-meson libglvnd build \
--libdir=/usr/lib32 \
-D headers=false \
-D gles1=false
ninja -C build
}
package() {
# lib32-libglvnd needs lib32-mesa for indirect rendering
depends=('lib32-libxext' 'libglvnd-git' 'lib32-mesa' 'lib32-opengl-driver')
DESTDIR="$pkgdir" ninja -C build install
rm -r "$pkgdir"/usr/include
mkdir -p "$pkgdir"/usr/share/licenses
ln -s libglvnd-git "$pkgdir"/usr/share/licenses/$pkgname
}
|