blob: bb8fb48c88e87336a96ec200d9b03ab975210061 (
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
47
48
49
50
51
|
# Maintainer: Vincent Grande <shoober420@gmail.com>
# Contributor: Maxime Gauduin <alucryd@gmail.com>
# Contributor: Jan de Groot <jgc@archlinux.org>
pkgname=lib32-libvdpau-git
pkgver=1.4
pkgrel=1
pkgdesc='Nvidia VDPAU library'
arch=(x86_64)
url=https://gitlab.freedesktop.org/vdpau/libvdpau
license=(custom)
depends=(
lib32-libxext
libvdpau
)
makedepends=(
xorgproto
git
meson
)
source=(git+https://gitlab.freedesktop.org/vdpau/libvdpau.git)
provides=(lib32-libvdpau)
conflicts=(lib32-libvdpau)
sha256sums=(SKIP)
pkgver() {
cd libvdpau
git describe --tags | sed 's/-/+/g'
}
build() {
export CC='gcc -m32'
export CXX='g++ -m32'
export PKG_CONFIG_PATH=/usr/lib32/pkgconfig
arch-meson libvdpau build \
--libdir=/usr/lib32 \
-D documentation=false
ninja $NINJAFLAGS -C build
}
package() {
DESTDIR="${pkgdir}" ninja $NINJAFLAGS -C build install
rm -rf "${pkgdir}"/{etc,usr/include}
install -dm 755 "${pkgdir}"/usr/share/licenses
ln -s libvdpau "${pkgdir}"/usr/share/licenses/lib32-libvdpau
}
# vim: ts=2 sw=2 et:
|