1 # Maintainer: Peter Ivanov <ivanovp@gmail.com>
2 # Based on dvb-usb-rtl2832u-arch, author DonVla <donvla@users.sourceforge.net>
4 pkgname=dvb-usb-rtl2838u-arch
8 pkgver=1.1_${_kversion}
10 pkgdesc="Kernel module for the RTL2832U, RTL2836U and RTL2838U DVB-T USB2.0 devices"
11 arch=('i686' 'x86_64')
12 url="http://dev.ivanov.eu/projects/rtl2838/"
14 depends=("kernel-headers")
15 install="${pkgname}.install"
16 source=("dvb-usb-rtl2838u.tar.gz::http://dev.ivanov.eu/projects/rtl2838/dvb-usb-rtl2838u.tar.gz")
17 md5sums=('f767d22de33e4eb3de0effff7bba7bd7')
18 sha256sums=('2bd8bea9cda586ee5dcb2d48c4a1b3eeae7f6ce71166bcff5a74af835951e17e')
21 local _KERNEL="${_kversion}-${pkgrel}${_kernelname}"
23 sed -e "s#KERNEL_VERSION=.*#KERNEL_VERSION=${_KERNEL}#g" -i "${startdir}/${install}"
25 cd "${srcdir}/dvb-usb-rtl2832u"
27 export KBUILD_SRC="/usr/src/linux-${_KERNEL}"
28 export INSTALL_MOD_PATH="${pkgdir}"
29 export INSTALL_MOD_DIR=kernel/drivers/media/dvb/dvb-usb
30 make -C "${KBUILD_SRC}" M="$PWD" modules
31 make -C "${KBUILD_SRC}" M="$PWD" modules_install
34 # vim:set ts=2 sw=2 et: