summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorOle Ernst2015-07-19 09:11:00 +0200
committerOle Ernst2015-07-19 09:11:00 +0200
commit6edffc5395ec38f687d580acf2a66ca4553b4716 (patch)
treeac2deaa06fc4c920dc8aaea927b2cbc3ce455a9c /PKGBUILD
parent227ef3cb4c8fe0fd63508006bffb6d6a09404b51 (diff)
downloadaur-6edffc5395ec38f687d580acf2a66ca4553b4716.tar.gz
fix build against 4.1.x kernel, cleanup
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD15
1 files changed, 8 insertions, 7 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 0268582dc33..66c3d5e8d07 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Ole Ernst <olebowle[at]gmx[dot]com>
pkgname=media-build-dvbsky
pkgver=20150322
-pkgrel=2
+pkgrel=3
pkgdesc="Driver for DVBSky cards/boxes"
arch=('i686' 'x86_64')
url="http://www.dvbsky.net/Support_linux.html"
@@ -10,7 +10,7 @@ depends=('dvbsky-firmware')
makedepends=('linux-headers' 'perl-proc-processtable')
conflicts=('dvbsky-dvb-drivers')
replaces=('dvbsky-dvb-drivers')
-install="${pkgname}.install"
+install="$pkgname.install"
source=("http://dvbsky.net/download/linux/media_build-bst-150322.tar.gz"
'add_c2800e.patch')
sha256sums=('fd4acd06d2a4a5d5987393d68979aaf8832f5b21ae828ea6a50baca998cd89c7'
@@ -20,22 +20,23 @@ sha256sums=('fd4acd06d2a4a5d5987393d68979aaf8832f5b21ae828ea6a50baca998cd89c7'
DLAGENTS="$( IFS=$'\n'; echo "${DLAGENTS[*]}" | grep '^http::' ) --user-agent 'Mozilla/4.0'"
prepare() {
- cd "${srcdir}/media_build-bst"
+ cd "$srcdir/media_build-bst"
ln -sr v4l/sit2_op.o.x${CARCH: -2} v4l/sit2_op.o
cp v4l/sit2_mod.dvb linux/drivers/media/dvb-frontends/sit2_mod.c
+ sed -i '/eth_rebuild_header/d' linux/drivers/media/dvb-core/dvb_net.c
sed -i -e "s|/sbin/lsmod|$(which lsmod)|" -e 's|/sbin/depmod|#/sbin/depmod|' v4l/Makefile
sed -i 's|/sbin/depmod|#/sbin/depmod|' v4l/scripts/make_makefile.pl
patch -p1 -i ../add_c2800e.patch
}
build() {
- cd "${srcdir}/media_build-bst"
+ cd "$srcdir/media_build-bst"
#media-build doesn't like parallel jobs
make -j1
}
package() {
- cd "${srcdir}/media_build-bst"
- make DESTDIR="${pkgdir}" KDIR26="/usr/lib/modules/$(uname -r)/updates/kernel/drivers/media" media-install
- find "${pkgdir}" -type f -name '*.ko' -exec gzip -9 {} \;
+ cd "$srcdir/media_build-bst"
+ make DESTDIR="$pkgdir" KDIR26="/usr/lib/modules/$(uname -r)/updates/kernel/drivers/media" media-install
+ find "$pkgdir" -type f -name '*.ko' -exec gzip -9 {} \;
}