core/glibc/Pkgfile
2007-01-23 17:35:30 +00:00

36 lines
1.0 KiB
Plaintext

# Description: The C library used in the GNU system
# URL: http://www.gnu.org/software/libc/
# Maintainer: CRUX System Team, core-ports at crux dot nu
name=glibc
version=2.5
release=1
source=(http://ftp.gnu.org/gnu/glibc/glibc-$version.tar.bz2
http://crux.nu/files/dist/kernel-headers-2.6.18.tar.bz2
hosts resolv.conf nsswitch.conf host.conf ld.so.conf)
build() {
# install build kernel headers
mkdir $PKG/usr/
cp -r kernel-headers-2.6.18/include $PKG/usr
chown root:root $PKG/usr
mkdir build
cd build
../$name-$version/configure --prefix=/usr \
--libexecdir=/usr/lib \
--with-headers=$PKG/usr/include \
--with-tls \
--enable-kernel=2.6.0 \
--enable-add-ons \
--disable-profile \
--without-gd
make
#make check
make install_root=$PKG install
make install_root=$PKG localedata/install-locales
cp ../{hosts,resolv.conf,nsswitch.conf,host.conf,ld.so.conf} $PKG/etc
ln -sf ../usr/share/zoneinfo/UTC $PKG/etc/localtime
rm -rf $PKG/usr/share/locale
}