PKGBUILDs/community/kernel-headers-musl/PKGBUILD

32 lines
1.1 KiB
Bash
Raw Normal View History

2015-02-26 20:51:59 +00:00
# Maintainer: Jens Staal <staal1978@gmail.com>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - ensure ARCH is defined as "arm" for v6 and v7
pkgname=kernel-headers-musl
pkgver=3.12.6_6
pkgrel=1
2015-02-26 20:51:59 +00:00
pkgdesc="Linux kernel headers sanitized for use with musl libc"
arch=('x86_64')
2015-02-26 20:51:59 +00:00
url="https://github.com/sabotage-linux/kernel-headers"
license=('LGPL')
depends=('musl')
source=("$pkgname-$pkgver.tar.gz::https://github.com/sabotage-linux/kernel-headers/archive/v${pkgver/_/-}.tar.gz")
sha512sums=('866f01e5fc3f03eb191c0ce8e8a021b21d57bf5b38bdaf0fc75629f17409817358916177f48a90192dcd2678fc1ed3c917f1176ea3bd42b1ccfffe1a7eb2f8ba')
2015-02-26 20:51:59 +00:00
build() {
cd "$srcdir"/kernel-headers-${pkgver/_/-}
2015-02-26 20:51:59 +00:00
_CARCH=$CARCH
[ $CARCH == "i686" ] && _CARCH=x86
[ $CARCH == "armv7h" -o $CARCH == "armv6h" ] && _CARCH=arm
make ARCH=${_CARCH} prefix=/usr/lib/musl
}
package() {
cd "$srcdir"/kernel-headers-${pkgver/_/-}
2015-02-26 20:51:59 +00:00
_CARCH=$CARCH
[ $CARCH == "i686" ] && _CARCH=x86
[ $CARCH == "armv7h" -o $CARCH == "armv6h" ] && _CARCH=arm
make ARCH=${_CARCH} prefix=/usr/lib/musl DESTDIR="$pkgdir" install
2015-02-26 20:51:59 +00:00
}