core/libglvnd/PKGBUILD

35 lines
944 B
Bash
Raw Normal View History

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