updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / dvb-usb-rtl2832u-n130 / PKGBUILD
blobe848ce41a86ff35e1c606e188c738b569ef720f2
1 # Maintainer: DonVla <donvla@users.sourceforge.net>
3 pkgname=dvb-usb-rtl2832u-n130
4 _kernelname="-N130"
5 _kversion="2.6.38"
6 pkgver=1.1_${_kversion}
7 pkgrel=1
8 pkgdesc="Kernel26-n130 module for the RTL2832U DVB-T USB2.0 device"
9 arch=('i686')
10 url="https://build.opensuse.org/package/show?package=dvb-usb-rtl2832u&project=home%3Ajvroosmalen%3Abranches%3Ahome%3Apolyconvex"
11 license=('GPL')
12 depends=("kernel26-n130")
13 install=${pkgname}.install
14 source=("dvb-usb-rtl2832u.tar.bz2::https://api.opensuse.org/public/source/home:jvroosmalen:branches:home:polyconvex/dvb-usb-rtl2832u/dvb-usb-rtl2832u.tar.bz2?rev=4074ef2d7ae35cc4c97dcd9bd8e318c0&"
15         "dvb-usb-rtl2832u-add-device.patch::https://api.opensuse.org/public/source/home:jvroosmalen:branches:home:polyconvex/dvb-usb-rtl2832u/dvb-usb-rtl2832u-add-device.patch?rev=4074ef2d7ae35cc4c97dcd9bd8e318c0&"
16         "dvb-usb-rtl2832u-compilefix.patch::https://api.opensuse.org/public/source/home:jvroosmalen:branches:home:polyconvex/dvb-usb-rtl2832u/dvb-usb-rtl2832u-compilefix.patch?rev=4074ef2d7ae35cc4c97dcd9bd8e318c0&")
17 md5sums=('0d18d892c98364c20e62e42345325803'
18          '1308d1b718f18d041ff8f8d125103756'
19          'c5b27b462ebff11011f3bd6aa732baa9')
20 sha256sums=('91b83d2fe406b8d9790b0d5d19b45835cb30d788ce45c2a0d55460467ab3f14e'
21             '364545fa6aa1d71812dd04238147ee4e8d739bc51f91b97370569e20d2c7fc9a'
22             '84fd31a8a77d7aac10b5e3ca26899e29d8e6f8814f798e06e5ad7c4d039df838')
24 build() {
25   local _KERNEL="${_kversion}${_kernelname}"
26   # set KERNEL_VERSION
27   sed -e  "s#KERNEL_VERSION=.*#KERNEL_VERSION=${_KERNEL}#g" -i "${startdir}/${install}"
29   cd "${srcdir}/dvb-usb-rtl2832u"
30   patch -p1 < "${srcdir}/dvb-usb-rtl2832u-compilefix.patch"
31   patch -p1 < "${srcdir}/dvb-usb-rtl2832u-add-device.patch"
33   export KBUILD_SRC="/usr/src/linux-${_KERNEL}"
34   export INSTALL_MOD_PATH="${pkgdir}"
35   export INSTALL_MOD_DIR=kernel/drivers/media/dvb/dvb-usb
36   make -C "${KBUILD_SRC}" M="$PWD" modules
37   make -C "${KBUILD_SRC}" M="$PWD" modules_install
38   find "${pkgdir}" -name '*.ko' -exec gzip -9 {} \;
41 # vim:set ts=2 sw=2 et: