PKGBUILDs/extra/kernel-headers-musl/PKGBUILD

34 lines
1.2 KiB
Bash
Raw Normal View History

# Maintainer: Sergej Pupykin <arch+pub@sergej.pp.ru>
# Maintainer: Eli Schwartz <eschwartz@archlinux.org>
# Contributor: Jens Staal <staal1978@gmail.com>
2015-02-26 20:51:59 +00:00
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - ensure ARCH is defined as "arm" for v6 and v7
pkgname=kernel-headers-musl
pkgver=4.19.88
pkgrel=2
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=('db0239c40399c89cc250b9f1f53b7ec4eb119fde6b25c503aef7e88b80694df3a5e89196a22e66376731764bac83d9120794ee6c601a95b824f1ab770cb45a61')
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
}