2008-11-03 07:12:53 +01:00
|
|
|
# Template file for 'glibc32'
|
|
|
|
pkgname=glibc32
|
2010-05-15 15:40:53 +02:00
|
|
|
version=2.11.1
|
|
|
|
distfiles="
|
|
|
|
http://xbps.nopcode.org/repos/stable/i686/glibc-${version}_3:20100511.i686.xbps
|
|
|
|
http://xbps.nopcode.org/repos/stable/i686/glibc-devel-${version}_2:20100511.i686.xbps"
|
2010-01-29 18:46:21 +01:00
|
|
|
build_style=custom-install
|
2008-11-03 07:12:53 +01:00
|
|
|
short_desc="The GNU C library (32 bits)"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2010-05-15 15:40:53 +02:00
|
|
|
checksum="
|
|
|
|
fee8bc09410fa03545aa0eefd6d05917c8b3a8c1776ba16d40780be18f15ba55
|
|
|
|
a7996583689a7ba627fa9af7ae3668c06b5564c80bd84b2736e97e3c4c8b331b"
|
2008-11-03 07:12:53 +01:00
|
|
|
long_desc="
|
|
|
|
The GNU C Library is the standard system C library for all GNU systems,
|
|
|
|
and is an important part of what makes up a GNU system. It provides the
|
|
|
|
system API for all programs written in C and C-compatible languages such
|
|
|
|
as C++ and Objective C; the runtime facilities of other programming
|
|
|
|
languages use the C library to access the underlying operating system.
|
|
|
|
|
2008-11-17 09:16:31 +01:00
|
|
|
This package installs the 32 bit libraries for x86_64 systems."
|
2008-11-03 07:12:53 +01:00
|
|
|
|
2010-05-15 15:40:53 +02:00
|
|
|
subpackages="${pkgname}-devel"
|
2010-01-29 18:46:21 +01:00
|
|
|
nostrip=yes
|
|
|
|
noextract=yes
|
|
|
|
noverifyrdeps=yes
|
2008-11-03 08:38:38 +01:00
|
|
|
only_for_archs=x86_64
|
2008-11-03 07:12:53 +01:00
|
|
|
|
2010-05-15 15:40:53 +02:00
|
|
|
Add_dependency run glibc
|
|
|
|
Add_dependency build bsdtar
|
2008-11-03 07:12:53 +01:00
|
|
|
|
2010-01-29 18:46:21 +01:00
|
|
|
do_install()
|
2008-11-03 07:12:53 +01:00
|
|
|
{
|
2010-05-15 15:40:53 +02:00
|
|
|
for f in ${distfiles}; do
|
|
|
|
local srcfile="${XBPS_SRCDISTDIR}/$(basename ${f})"
|
|
|
|
bsdtar xf ${srcfile} -C ${wrksrc} || return 1
|
|
|
|
done
|
|
|
|
|
|
|
|
install -D -m644 ${wrksrc}/usr/include/gnu/stubs-32.h \
|
|
|
|
${DESTDIR}/usr/include/gnu/stubs-32.h
|
|
|
|
install -D -m644 ${wrksrc}/usr/include/sys/elf.h \
|
|
|
|
${DESTDIR}/usr/include/sys/elf.h
|
|
|
|
install -D -m644 ${wrksrc}/usr/include/sys/vm86.h \
|
|
|
|
${DESTDIR}/usr/include/sys/vm86.h
|
2010-01-29 18:46:21 +01:00
|
|
|
|
|
|
|
install -d ${DESTDIR}/lib32 ${DESTDIR}/usr/lib32/gconv
|
|
|
|
cp -a ${wrksrc}/lib/*.so* ${DESTDIR}/lib32
|
|
|
|
cp -a ${wrksrc}/usr/lib/gconv/* ${DESTDIR}/usr/lib32/gconv
|
|
|
|
install -d ${DESTDIR}/lib
|
2010-01-29 23:59:39 +01:00
|
|
|
cd ${DESTDIR}/lib && ln -sf ../lib32/ld-linux.so.2 .
|
2010-05-15 15:40:53 +02:00
|
|
|
install -m644 ${wrksrc}/usr/lib/*.{a,o,so} ${DESTDIR}/usr/lib32
|
|
|
|
|
|
|
|
# Add /lib32 and /usr/lib32 into ld.so(8) cache.
|
|
|
|
install -d ${DESTDIR}/etc/ld.so.conf.d
|
|
|
|
{ echo "/lib32"; echo "/usr/lib32"; } \
|
|
|
|
> ${DESTDIR}/etc/ld.so.conf.d/glibc32.conf || return 1
|
|
|
|
|
|
|
|
chmod 644 ${DESTDIR}/etc/ld.so.conf.d/glibc32.conf \
|
|
|
|
&& ldconfig || return 1
|
2008-11-03 07:12:53 +01:00
|
|
|
}
|