summaryrefslogtreecommitdiff
path: root/glibc-32/Pkgfile
blob: b8c64e33d3f9c3af8cf0090deae5f94fcd6af6a0 (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-32
    6 version=2.19
    7 release=1
    8 source=(http://ftp.gnu.org/gnu/glibc/glibc-$version.tar.xz \
    9 	http://crux.nu/files/distfiles/kernel-headers-3.12.tar.bz2 \
   10 	$name-$version-multilib-dirs.patch \
   11 	hosts resolv.conf nsswitch.conf host.conf ld.so.conf \
   12 	lib32.conf) 
   13 
   14 build() {
   15 	# install kernel headers
   16 	mkdir $PKG/usr/
   17 	cp -r kernel-headers-3.12/include $PKG/usr
   18 	chown root:root $PKG/usr
   19 
   20 	patch -p1 -d glibc-$version -i $SRC/$name-$version-multilib-dirs.patch
   21 
   22 	mkdir build
   23 	cd build
   24 	CC="${CC:-gcc} -m32" ../glibc-$version/configure --prefix=/usr \
   25 		--libdir=/usr/lib32 \
   26 		--libexecdir=/usr/lib32 \
   27 		--with-headers=$PKG/usr/include \
   28 		--enable-kernel=3.10 \
   29 		--enable-add-ons \
   30 		--disable-profile \
   31 		--without-gd \
   32 		--enable-obsolete-rpc \
   33 		--enable-multi-arch i686-pc-linux-gnu
   34 	make 
   35 	#make check
   36 	make install_root=$PKG install
   37 
   38 	cp $SRC/{hosts,resolv.conf,nsswitch.conf,host.conf,ld.so.conf} $PKG/etc
   39 	ln -sf ../usr/share/zoneinfo/UTC $PKG/etc/localtime
   40 	mkdir -p $PKG/etc/ld.so.conf.d $PKG/usr/lib/locale
   41 	touch $PKG/etc/ld.so.cache
   42 
   43 	rm -rf $PKG/usr/{bin,sbin,share} $PKG/{etc,sbin} $PKG/var
   44 	(mv $PKG/usr/include/gnu/stubs-32.h $SRC;
   45 	 rm -rf $PKG/usr/include;
   46 	 install -D $SRC/stubs-32.h $PKG/usr/include/gnu/stubs-32.h)
   47 
   48 	install -D $SRC/lib32.conf $PKG/etc/ld.so.conf.d/lib32.conf
   49 	mkdir $PKG/lib && ln -s /lib32/ld-linux.so.2 $PKG/lib/ld-linux.so.2
   50 }

Generated by cgit