summaryrefslogtreecommitdiff
path: root/pkgbuilds/kernel26-libre/get_configs
blob: 1b42ebd1182bf34b16e50e2a840252c6127b10f4 (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

wget -O PKGBUILD.official "http://repos.archlinux.org/wsvn/packages/kernel26/repos/${from}-i686/PKGBUILD?op=dl"

exit 0