summaryrefslogtreecommitdiffstats
path: root/testing/ivtv-utils/APKBUILD
blob: 17e349d8a7a41963f173c4a8be86f15b079feac5 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=ivtv-utils
pkgver=1.4.0
pkgrel=1
pkgdesc="Userspace utilities and firmware for Hauppauge PVR cards"
url="http://ivtvdriver.org"
license="GPL"
depends=
makedepends=
source="http://dl.ivtvdriver.org/ivtv/stable/$pkgname-$pkgver.tar.gz
	http://dl.ivtvdriver.org/ivtv/firmware/ivtv-firmware.tar.gz"

build ()
{
	cd "$srcdir"/$pkgname-$pkgver
	make || return 1
}

package() {
	cd "$srcdir"/$pkgname-$pkgver
	make DESTDIR="$pkgdir" PREFIX=/usr install || return 1

	cd "$srcdir"
	for file in *.fw v4l-cx2341x-init.mpg; do
		install -D -m644 $file "$pkgdir"/lib/firmware/$file || return 1
	done
	rm -rf "$pkgdir"/usr/include
}

md5sums="13deb3fe973b175a115285e63f668b95  ivtv-utils-1.4.0.tar.gz
b9a871f1c569025be9c48a77b3515faf  ivtv-firmware.tar.gz"