blob: d9bfadcbf8fb52f18ac160874e5ab03030e18ee0 (
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
|
# Because this requires parts of the nVidia driver, this parallels the PKGBUILD for
# the nvidia package.
pkgname=vdpinfo
pkgver=185.18.14
pkgrel=1
pkgdesc="polls the GPU for nVidia vdpau capabilities"
arch=('i686' 'x86_64')
[ "$CARCH" = "i686" ] && ARCH=x86
[ "$CARCH" = "x86_64" ] && ARCH=x86_64
url="http://www.cs.rug.nl/~wladimir/vdpinfo/"
license=('MIT')
depends=('nvidia-utils=185.18.14' 'nvidia=185.18.14')
# Just let the dependency on the right nvidia and nvidia-utils versions
# handle conflicts via those packages conflicts.
# conflicts=()
provides=('vdpinfo')
source=(http://www.cs.rug.nl/~wladimir/vdpinfo/vdpinfo-0.0.5.tar.gz http://us.download.nvidia.com/XFree86/Linux-$ARCH/${pkgver}/NVIDIA-Linux-$ARCH-${pkgver}-pkg0.run)
md5sums=()
build() {
LH_ROOT=/usr/LH
mkdir -p $startdir/pkg/$LH_ROOT/bin/
# Extract nVidia driver to get at the headers we need to build vdpau
cd $startdir/src/
sh NVIDIA-Linux-$ARCH-${pkgver}-pkg0.run --extract-only
# build vdpinfo
cd $startdir/src/vdpinfo
#g++ -O3 -g -I../NVIDIA-Linux-x86-185.18.14-pkg0/usr/include -c -o vdpinfo.o vdpinfo.cpp
#g++ -O3 -g -I$startdir/src/usr/include -c -o vdpinfo.o vdpinfo.cpp
make
install -m0755 vdpinfo $startdir/pkg/$LH_ROOT/bin/
}
|