aboutsummaryrefslogtreecommitdiffstats
path: root/main/libvdpau/APKBUILD
blob: 7b6c385bd98f84a9328fb7321e41a76c67ca0689 (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
# Contributor: Carlo Landmeter
# Maintainer: 
pkgname=libvdpau
pkgver=0.5
pkgrel=0
pkgdesc="Nvidia VDPAU library"
url="http://cgit.freedesktop.org/~aplattner/libvdpau"
arch="all"
license="custom"
depends=
makedepends="libx11-dev"
install=
subpackages="$pkgname-dev $pkgname-doc"
source="http://people.freedesktop.org/~aplattner/vdpau/${pkgname}-${pkgver}.tar.gz"

_builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	cd "$_builddir"
	# apply patches here
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/vdpau/*.la \
		"$pkgdir"/usr/lib/*.la || return 1
	install -d -m755 "${pkgdir}/usr/share/licenses/${pkgname}"
	install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/" || return 1
}

md5sums="94c6d0ef2b1c0407c5cf89ca6f9ade88  libvdpau-0.5.tar.gz"