summaryrefslogtreecommitdiff
path: root/libre/kernel26-libre/get_configs
blob: 09e408b8b1ca53a828c0f810602a508da2d0a755 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

source PKGBUILD
source *.install

pkgname=${pkgname/-libre/}
KERNEL_VERSION=${KERNEL_VERSION/-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-${KERNEL_VERSION}/.config > config.${pkgarch}
done

sed -i "s/-ARCH/-LIBRE/" config.*

exit 0