CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
ports: updated rsync files
[ports/core-arm.git] / glibc / Pkgfile
CommitLineData
34fed911
VM
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# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
5# Depends on:
6
7name=glibc
b51aee1c
VM
8version=2.27
9release=1
10source=(http://ftp.gnu.org/gnu/glibc/glibc-$version.tar.xz \
11 http://www.kernel.org/pub/linux/kernel/v4.x/linux-4.14.14.tar.xz \
12 hosts resolv.conf nsswitch.conf host.conf ld.so.conf)
34fed911
VM
13
14build() {
736f12d7 15 # install kernel headers
b51aee1c 16 cd linux-4.14.14
34fed911
VM
17 make mrproper
18 make ARCH=arm headers_check
19 make ARCH=arm INSTALL_HDR_PATH=$PKG/usr headers_install
20
736f12d7
VM
21 mkdir $SRC/build
22 cd $SRC/build
e308f0f7 23 ../$name-${version:0:4}/configure --prefix=/usr \
68160bd8 24 --build=arm-unknown-linux-gnueabihf \
34fed911
VM
25 --libexecdir=/usr/lib \
26 --with-headers=$PKG/usr/include \
736f12d7 27 --enable-kernel=2.6.25 \
34fed911 28 --enable-add-ons \
9ab3f81a 29 --enable-static-nss \
34fed911 30 --disable-profile \
9ab3f81a 31 --disable-werror \
34fed911 32 --without-gd \
b51aee1c
VM
33 --enable-obsolete-rpc \
34 --enable-obsolete-nsl
34fed911 35
736f12d7 36 make
e308f0f7 37 #make check
34fed911
VM
38 make install_root=$PKG install
39
9ab3f81a
VM
40 install -m 0644 $SRC/$name-$version/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
34fed911 45 ln -sf ../usr/share/zoneinfo/UTC $PKG/etc/localtime
b51aee1c 46 ln -s stubs-hard.h $PKG/usr/include/gnu/stubs-soft.h
9ab3f81a 47 install -d $PKG/etc/ld.so.conf.d $PKG/usr/lib/locale
736f12d7 48 touch $PKG/etc/ld.so.cache
34fed911 49
736f12d7 50 rm -rf $PKG/usr/share/{info,locale} \
9ab3f81a
VM
51 $PKG/usr/bin/tzselect \
52 $PKG/usr/sbin/z{dump,ic}
34fed911 53}