1 # Contributor: Thijs Vermeir <thijsvermeir@gmail.com>
6 pkgdesc="usb dvb stick driver"
8 url="http://linuxtv.org/hg/~anttip/"
10 install='ec168.install'
11 source=('http://palosaari.fi/linux/v4l-dvb/firmware/ec168/dvb-usb-ec168.fw' 'config')
12 md5sums=('7f38bf1ade8331f7190e75c75b3d37cf' '7bf465be99a6968f02544f085eda72fc')
15 cd $startdir/src/ || return 1
16 [ -e tip.tar.bz2 ] || wget http://linuxtv.org/hg/~anttip/ec168/archive/tip.tar.bz2 || return 1
19 tar -jxf *tar.bz2 || return 1
21 cp ../config v4l/.config
23 #sed 's|#define NEED_USB_ENDPOINT_TYPE 1||g' -i v4l/config-compat.h
27 make DESTDIR="$startdir/pkg" install || return 1
28 find $startdir/pkg -name "modules.*" | xargs rm
29 find $startdir/pkg -name "dvb-usb.ko" | xargs rm
30 mkdir -p $startdir/pkg/lib/firmware
31 cp ../dvb-usb-ec168.fw $startdir/pkg/lib/firmware