2016-03-17 01:00:00 +00:00
|
|
|
# $Id: PKGBUILD 249779 2015-10-27 00:47:25Z eric $
|
|
|
|
# Maintainer: Felix Yan <felixonmars@archlinux.org>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - disable assembly on !armv7h
|
|
|
|
|
|
|
|
pkgname=libglvnd
|
2017-03-11 16:39:08 +00:00
|
|
|
pkgver=0.2.999+g4ba53457
|
|
|
|
_commit=4ba5345742d6c98b528ac28fb7127006d2cc3f75
|
2016-03-17 01:00:00 +00:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="The GL Vendor-Neutral Dispatch library"
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
url="https://github.com/NVIDIA/libglvnd"
|
|
|
|
license=('custom:BSD-like')
|
2017-03-11 16:39:08 +00:00
|
|
|
makedepends=('libxext' 'libx11' 'glproto' 'git' 'python')
|
|
|
|
provides=('libgl' 'libegl' 'libgles')
|
2016-11-04 18:13:07 +00:00
|
|
|
#source=("git+https://github.com/NVIDIA/libglvnd.git#tag=v$pkgver"
|
|
|
|
source=("git+https://github.com/NVIDIA/libglvnd.git#commit=$_commit"
|
2017-03-11 16:39:08 +00:00
|
|
|
LICENSE)
|
|
|
|
sha256sums=('SKIP'
|
|
|
|
'1a99f7487849c41fc3520e0af3dfcf28a0df05e78956d9ec58c2c52b1f20a77d')
|
2016-03-17 01:00:00 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $pkgname
|
|
|
|
./autogen.sh
|
|
|
|
[[ $CARCH != "armv7h" ]] && CONFIG="--disable-asm"
|
|
|
|
./configure --prefix=/usr $CONFIG
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2017-03-11 16:39:08 +00:00
|
|
|
depends=('libxext' 'opengl-driver')
|
2016-03-17 01:00:00 +00:00
|
|
|
cd $pkgname
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
|
|
|
|
install -Dm644 ../LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
|
|
}
|