core/glibc/Pkgfile

45 lines
1.5 KiB
Plaintext
Raw Normal View History

2006-02-23 16:26:10 +01:00
# 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
2006-02-23 16:26:10 +01:00
name=glibc
2009-05-11 15:42:10 +02:00
version=2.10.1
release=2
source=(http://ftp.gnu.org/gnu/glibc/glibc-$version.tar.bz2
http://ftp.gnu.org/gnu/glibc/glibc-libidn-$version.tar.bz2
http://crux.nu/files/distfiles/kernel-headers-2.6.29-1.tar.bz2
hosts resolv.conf nsswitch.conf host.conf ld.so.conf)
2006-02-23 16:26:10 +01:00
build() {
# install kernel headers
2006-11-20 13:05:48 +01:00
mkdir $PKG/usr/
2009-05-11 15:42:10 +02:00
cp -r kernel-headers-2.6.29/include $PKG/usr
2006-11-20 13:05:48 +01:00
chown root:root $PKG/usr
# libidn files
mv $name-libidn-$version $name-$version/libidn
2006-02-23 16:26:10 +01:00
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
2006-02-23 16:26:10 +01:00
make
2006-02-23 18:31:48 +01:00
#make check
2006-02-23 16:26:10 +01:00
make install_root=$PKG install
cp $SRC/{hosts,resolv.conf,nsswitch.conf,host.conf,ld.so.conf} $PKG/etc
2006-02-23 16:26:10 +01:00
ln -sf ../usr/share/zoneinfo/UTC $PKG/etc/localtime
mkdir -p $PKG/etc/ld.so.conf.d $PKG/usr/lib/locale
# conflicts with quota
rm $PKG/usr/include/rpcsvc/{rquota.h,rquota.x}
rm -rf $PKG/usr/share/{info,locale}
2006-02-23 16:26:10 +01:00
}