summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorOle Ernst2016-03-30 17:42:21 +0200
committerOle Ernst2016-03-30 17:42:21 +0200
commitcaa16b1dccd6148184565fbcbb2b2e63de163146 (patch)
treeb6fbf119c16aff0f792cae77361e441830a1e91e /PKGBUILD
parent90ec58e04b03e7b280a9d5baf977d65bb14cf2cd (diff)
downloadaur-caa16b1dccd6148184565fbcbb2b2e63de163146.tar.gz
only make target prepare is racy
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD11
1 files changed, 6 insertions, 5 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 3a05c5e0bf1..e335a2bca8f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -21,7 +21,7 @@ sha256sums=('48a8726c6799025be06bc5b8bafa8449ca02abf8fe578e805f91707a5edf1e52'
'42e4e6b6011f1126e69d8fd1cc06af72b4baa396b551c18a54de632d572c7d8c')
prepare() {
- cd "$srcdir/media_build-bst"
+ cd 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 '/depmod/d' v4l/Makefile v4l/scripts/make_makefile.pl
@@ -33,13 +33,14 @@ prepare() {
}
build() {
- cd "$srcdir/media_build-bst"
- #media-build doesn't like parallel jobs
- make VER=$_kernver -j1
+ cd media_build-bst
+ #target prepare doesn't like parallel jobs
+ make VER=$_kernver -j1 prepare
+ make VER=$_kernver
}
package() {
- cd "$srcdir/media_build-bst"
+ cd media_build-bst
make DESTDIR="$pkgdir" KDIR26="/usr/lib/modules/$_kernver/updates/kernel/drivers/media" media-install
find "$pkgdir" -type f -name '*.ko' -exec gzip -9 {} \;
}