core/glibc/Pkgfile

41 lines
1.3 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.11.2
release=1
source=(http://ftp.gnu.org/gnu/glibc/glibc-$version.tar.xz
http://crux.nu/files/distfiles/kernel-headers-2.6.34.tar.xz
glibc-fedora_i686.patch
hosts resolv.conf nsswitch.conf host.conf ld.so.conf)
build() {
# install kernel headers
mkdir $PKG/usr/
cp -r kernel-headers-2.6.34/include $PKG/usr
chown root:root $PKG/usr
patch -p1 -d $name-$version -i $SRC/$name-fedora_i686.patch
mkdir build
cd build
../$name-$version/configure --prefix=/usr \
--libexecdir=/usr/lib \
--with-headers=$PKG/usr/include \
--with-tls \
--enable-kernel=2.6.27 \
--enable-add-ons \
--disable-profile \
--without-gd
make
#make check
make install_root=$PKG install
cp $SRC/{hosts,resolv.conf,nsswitch.conf,host.conf,ld.so.conf} $PKG/etc
ln -sf ../usr/share/zoneinfo/UTC $PKG/etc/localtime
mkdir -p $PKG/etc/ld.so.conf.d $PKG/usr/lib/locale
rm -rf $PKG/usr/share/{info,locale}
}