summaryrefslogtreecommitdiff
path: root/glibc/Pkgfile
blob: f048a09489b09b34d525bd0143449fc2573ea815 (plain)
    1 # Description: The C library used in the GNU system
    2 # URL:         http://www.gnu.org/software/libc/
    3 # Maintainer:  CRUX System Team, core-ports at crux dot nu
    4 
    5 name=glibc
    6 version=2.24
    7 release=7
    8 source=(http://ftpmirror.gnu.org/gnu/glibc/glibc-2.24.tar.xz \
    9 	http://crux.nu/files/distfiles/kernel-headers-4.9.5.tar.xz \
   10 	$name-2.20-multilib-dirs.patch \
   11 	hosts resolv.conf nsswitch.conf host.conf ld.so.conf \
   12 	glibc-2.24-updates.patch)
   13 
   14 build() {
   15 	# install kernel headers
   16 	install -d $PKG/usr/
   17 	cp -r $SRC/kernel-headers-4.9.5/include $PKG/usr
   18 	chown root:root $PKG/usr
   19 
   20 	patch -p1 -d $SRC/$name-${version:0:4} -i $SRC/glibc-2.24-updates.patch
   21 	patch -p1 -d $SRC/$name-${version:0:4} -i $SRC/$name-2.20-multilib-dirs.patch
   22 
   23 	mkdir $SRC/build
   24 	cd $SRC/build
   25 	../$name-${version:0:4}/configure --prefix=/usr \
   26 		--libexecdir=/usr/lib \
   27 		--with-headers=$PKG/usr/include \
   28 		--enable-kernel=3.12 \
   29 		--enable-add-ons \
   30 		--enable-static-nss \
   31 		--disable-profile \
   32 		--disable-werror \
   33 		--without-gd \
   34 		--enable-obsolete-rpc \
   35 		--enable-multi-arch
   36 	make 
   37 	#make check
   38 	make install_root=$PKG install
   39 
   40 	install -m 0644 $SRC/$name-${version:0:4}/nscd/nscd.conf $PKG/etc 
   41 	install -d $PKG/var/{db,run}/nscd
   42 
   43 	install -m 0644 $SRC/{hosts,resolv.conf,nsswitch.conf,host.conf,ld.so.conf} $PKG/etc
   44 
   45 	ln -sf ../usr/share/zoneinfo/UTC $PKG/etc/localtime
   46 	install -d $PKG/etc/ld.so.conf.d $PKG/usr/lib/locale
   47 	touch $PKG/etc/ld.so.cache
   48 
   49 	rm -rf $PKG/usr/share/{info,locale} \
   50 		$PKG/usr/bin/tzselect \
   51 		$PKG/usr/sbin/z{dump,ic}
   52 }

Generated by cgit