core/glibc/Pkgfile

40 lines
1.1 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.6.1
release=2
source=(http://ftp.gnu.org/gnu/glibc/glibc-$version.tar.bz2
http://crux.nu/files/dist/kernel-headers-2.6.22.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.22/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
# conflicts with quota
rm $PKG/usr/include/rpcsvc/{rquota.h,rquota.x}
rm -rf $PKG/usr/share/locale
}