32 lines
1.0 KiB
Bash
32 lines
1.0 KiB
Bash
# Maintainer: Tyler Veness <calcmogul at gmail dot com>
|
|
|
|
_target_arch=arm
|
|
_target=${_target_arch}-frc-linux-gnueabi
|
|
pkgname=${_target}-linux-api-headers
|
|
pkgver=3.16
|
|
_basever=3.16-r0.46
|
|
pkgrel=2
|
|
pkgdesc="Kernel headers sanitized for use in userspace (${_target})"
|
|
arch=(any)
|
|
url="http://www.gnu.org/software/libc"
|
|
license=('GPL2')
|
|
groups=('frc-2016')
|
|
provides=("${_target}-linux-api-headers=${pkgver}"
|
|
"${_target}-linux-api-headers30")
|
|
conflicts=("${_target}-linux-api-headers26")
|
|
options=('!emptydirs')
|
|
source=("http://download.ni.com/ni-linux-rt/feeds/2014/arm/ipk/cortexa9-vfp3/linux-libc-headers-dev_${_basever}_cortexa9-vfpv3.ipk")
|
|
sha512sums=('485c576ccbb255c3f5630b820b367fb7c02322b7ab516cf926e5d77adbb3aec1c624bfbb90a1e8647bd471230a9eb7e013c63e47f2f85b0452bc4539977b68f6')
|
|
|
|
package() {
|
|
cd "${srcdir}"
|
|
|
|
ar x linux-libc-headers-dev_${_basever}_armv7a-vfp-neon.ipk
|
|
tar xf data.tar.gz
|
|
|
|
cd usr
|
|
mkdir -p ${pkgdir}/usr/${_target}/usr
|
|
find . \( -name .install -o -name ..install.cmd \) -delete
|
|
cp -r ./* ${pkgdir}/usr/${_target}/usr
|
|
}
|