blob: 3292d27652e3ce34cadc066861bcd73c39cd5621 (
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
42
43
44
45
|
# Maintainer: Cecil Watson<knoppmyth@gmail.com>
pkgname=v4l-dvb
_kernver=`uname -r`
pkgver=20141028
pkgrel=1
pkgdesc="V4L-DVB device drivers (newer than those included in linux pkg)"
arch=('i686' 'x86_64')
url="http://linuxtv.org/"
license=('GPL2')
depends=('')
makedepends=('git' 'linux-headers' 'perl-proc-processtable' 'patchutils')
options=(!makeflags)
install=v4l-dvb.install
_gitroot="git://linuxtv.org/media_build.git"
_gitname="media_build"
build() {
cd "${srcdir}"
msg "Connecting to GIT server...."
if [ -d "${srcdir}/${_gitname}" ] ; then
cd ${_gitname} && git pull --rebase
else
git clone ${_gitroot}
fi
msg "GIT checkout done or server timeout"
msg "Starting make..."
cd "${srcdir}/${_gitname}/linux"
make download untar
cd ..
make
}
package() {
install -dm755 "${srcdir}/usr/lib/modules/$_kernver/updates"
cd "${srcdir}/${_gitname}"
make DESTDIR="${pkgdir}/usr/lib/modules/$_kernver/updates" install
# compress new kernel modules
find ${pkgdir}/usr/lib/modules/$_kernver/updates/ -not -name 'media.ko' -name '*.ko' -exec gzip '{}' \;
}
md5sums=()
|