summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoan Figueras2021-04-02 14:08:07 +0200
committerJoan Figueras2021-04-02 14:08:07 +0200
commitf65a382a11661d8fa1883d2db780daa7a7275023 (patch)
tree158b3bca5cb6938944f4d9eabc5ad3247b7bd464
parent297c0add975d38bc76e099862ba0075251f559d8 (diff)
downloadaur-f65a382a11661d8fa1883d2db780daa7a7275023.tar.gz
hacky fix for xz patch not getting extracted, see discussion at URL in comments
-rw-r--r--PKGBUILD7
1 files changed, 7 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 9a96c666019..dfd88f82cb8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -96,6 +96,13 @@ export KBUILD_BUILD_TIMESTAMP=${KBUILD_BUILD_TIMESTAMP:-$(date -Ru${SOURCE_DATE_
prepare() {
cd linux-${_major}
+ # hacky work around for xz not getting extracted
+ # https://bbs.archlinux.org/viewtopic.php?id=265115
+ if [[ ! -f "$srcdir/patch-${pkgver}-rt${_rt}-xanmod${xanmod}" ]]; then
+ unlink "$srcdir/patch-${pkgver}-rt${_rt}-xanmod${xanmod}.xz"
+ xz -dc "$startdir/patch-${pkgver}-rt${_rt}-xanmod${xanmod}.xz" > "$srcdir/patch-${pkgver}-rt${_rt}-xanmod${xanmod}"
+ fi
+
# Apply Xanmod patch
patch -Np1 -i ../patch-${pkgver}-rt${_rt}-xanmod${xanmod}