blob: fe60a36967d5a2b2965d7bd7446603051788609f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/bin/bash
source PKGBUILD
pkgname=${pkgname%-libre}
from=${1:-core}
for pkgarch in ${arch[@]}; do
wget -nc "http://mirrors.kernel.org/archlinux/$from/os/${pkgarch}/${pkgname}-headers-${pkgver}-${pkgrel}-${pkgarch}.pkg.tar.xz"
tar -xOf "${pkgname}-headers-${pkgver}-${pkgrel}-${pkgarch}.pkg.tar.xz" usr/src/linux-${_basekernel}-ARCH/.config > config.${pkgarch}
done
sed -i "s/-ARCH/-LIBRE/" config.*
exit 0
|