several changes to toolchain packages
[hdw-linux/hdw-linux.git] / packages / base / linux-libc-headers / linux-libc-headers
1 # hdw - linux base linux-libc-headers package
2 #
3 # author: hackbard@hackdaworld.dyndns.org
4 #
5 # [V] 2.6.12.0
6 # [S] 2-2
7 # [D] linux-libc-headers-2.6.12.0.tar.bz2 http://ep09.pld-linux.org/~mmazur/linux-libc-headers/
8
9 skip=1
10 s_reason="using linux kernel headers again (instead of linux-libc-headers)."
11
12 arch=${hdw_arch//ia32/i386}
13
14 build_main()    {
15         rm -rf $prefix/include/asm
16         rm -rf $prefix/include/linux
17         cp -R include/asm-${arch} $prefix/include/asm
18         cp -R include/linux $prefix/include
19         chown -R root.root $prefix/include/{asm,linux}
20         find $prefix/include/{asm,linux} -type d -exec chmod 755 {} \;
21         find $prefix/include/{asm,linux} -type f -exec chmod 644 {} \;
22                 }