summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorMiklós Tóth2021-04-02 12:08:09 +0000
committerMiklós Tóth2021-04-02 12:08:09 +0000
commit8e4b8d73f91c4cc7e6180a36a9a6dff7aedc6cc5 (patch)
treeaea6b9830d88f6235b133d9fb8cd8b89c42cea46 /PKGBUILD
parent3a2cf2468e0690bd6a3474491f352b9add3c0770 (diff)
downloadaur-8e4b8d73f91c4cc7e6180a36a9a6dff7aedc6cc5.tar.gz
automatic update
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD8
1 files changed, 8 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 768f1167eb4..dafd0193635 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -71,6 +71,7 @@ _srcname="linux-${pkgver}-xanmod${xanmod}"
source=("https://cdn.kernel.org/pub/linux/kernel/v${_branch}/linux-${_major}.tar."{xz,sign}
"https://github.com/xanmod/linux/releases/download/${pkgver}-xanmod${xanmod}/patch-${pkgver}-xanmod${xanmod}.xz"
choose-gcc-optimization.sh)
+ #"patch-${pkgver}-xanmod${xanmod}.xz::https://sourceforge.net/projects/xanmod/files/releases/stable/${pkgver}-xanmod${xanmod}/patch-${pkgver}-xanmod${xanmod}.xz/download"
validpgpkeys=(
'ABAF11C65A2970B130ABE3C479BE3E4300411886' # Linux Torvalds
'647F28654894E3BD457199BE38DBBDC86092693E' # Greg Kroah-Hartman
@@ -96,6 +97,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}-xanmod${xanmod}" ]]; then
+ unlink "$srcdir/patch-${pkgver}-xanmod${xanmod}.xz"
+ xz -dc "$startdir/patch-${pkgver}-xanmod${xanmod}.xz" > "$srcdir/patch-${pkgver}-xanmod${xanmod}"
+ fi
+
# Apply Xanmod patch
patch -Np1 -i ../patch-${pkgver}-xanmod${xanmod}