diff options
Diffstat (limited to 'libre/kernel26-libre/get_configs')
-rwxr-xr-x | libre/kernel26-libre/get_configs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libre/kernel26-libre/get_configs b/libre/kernel26-libre/get_configs index fe60a3696..09e408b8b 100755 --- a/libre/kernel26-libre/get_configs +++ b/libre/kernel26-libre/get_configs @@ -1,13 +1,15 @@ #!/bin/bash source PKGBUILD +source *.install -pkgname=${pkgname%-libre} +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-${_basekernel}-ARCH/.config > config.${pkgarch} + 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.* |