Add a patch loop
This commit is contained in:
parent
6f80feef04
commit
fbf5b3b8ad
13
PKGBUILD
13
PKGBUILD
|
@ -34,13 +34,20 @@ sha256sums=('SKIP'
|
|||
prepare() {
|
||||
cd $_srcname
|
||||
|
||||
# Insert patches or cherry-picks here
|
||||
|
||||
msg2 "Setting version..."
|
||||
scripts/setlocalversion --save-scmversion
|
||||
echo "${pkgbase#linux}" > localversion.10-pkgname
|
||||
echo "-$pkgrel" > localversion.20-pkgrel
|
||||
|
||||
local src
|
||||
for src in "${source[@]}"; do
|
||||
src="${src%%::*}"
|
||||
src="${src##*/}"
|
||||
[[ $src = *.patch ]] || continue
|
||||
msg2 "Applying patch $src..."
|
||||
patch -Np1 < "../$src"
|
||||
done
|
||||
|
||||
msg2 "Setting config..."
|
||||
cp ../config .config
|
||||
make olddefconfig
|
||||
|
@ -156,7 +163,7 @@ _package-headers() {
|
|||
msg2 "Removing unneeded architectures..."
|
||||
local arch
|
||||
for arch in "$builddir"/arch/*/; do
|
||||
[[ $arch == */x86/ ]] && continue
|
||||
[[ $arch = */x86/ ]] && continue
|
||||
echo "Removing $(basename "$arch")"
|
||||
rm -r "$arch"
|
||||
done
|
||||
|
|
Loading…
Reference in New Issue