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