mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 20:07:14 +08:00
35 lines
944 B
Bash
35 lines
944 B
Bash
# Maintainer: Ram-Z <ram-z[at]chakraos[dot]org>
|
|
# Contributor: Felix Yan <felixonmars@archlinux.org>
|
|
|
|
pkgname=libglvnd
|
|
pkgver=0.2.999+g4ba53457
|
|
_commit=4ba5345742d6c98b528ac28fb7127006d2cc3f75
|
|
pkgrel=3
|
|
pkgdesc="The GL Vendor-Neutral Dispatch library"
|
|
arch=('x86_64')
|
|
url="https://github.com/NVIDIA/libglvnd"
|
|
license=('custom:BSD-like')
|
|
depends=('libxext' 'mesa')
|
|
makedepends=('libx11' 'glproto' 'git' 'python2')
|
|
provides=('libgl' 'libegl' 'libgles')
|
|
source=("git+https://github.com/NVIDIA/libglvnd.git#commit=$_commit"
|
|
LICENSE)
|
|
sha256sums=('SKIP'
|
|
'1a99f7487849c41fc3520e0af3dfcf28a0df05e78956d9ec58c2c52b1f20a77d')
|
|
|
|
build() {
|
|
cd $pkgname
|
|
./autogen.sh
|
|
./configure --prefix=/usr
|
|
make
|
|
}
|
|
|
|
package() {
|
|
# libglvnd needs mesa for indirect rendering
|
|
depends=('libxext' 'mesa' 'opengl-driver')
|
|
cd $pkgname
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
install -Dm644 ../LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
}
|