2008-11-03 06:12:53 +00:00
|
|
|
# Template file for 'glibc32'
|
|
|
|
pkgname=glibc32
|
2011-07-11 16:47:06 +00:00
|
|
|
version=2.14
|
2011-07-11 17:12:05 +00:00
|
|
|
revision=4
|
|
|
|
_devrev=2
|
2010-05-15 13:40:53 +00:00
|
|
|
distfiles="
|
2011-07-11 17:12:05 +00:00
|
|
|
http://xbps.nopcode.org/repos/current/i686/glibc-${version}_${revision}.i686.xbps
|
|
|
|
http://xbps.nopcode.org/repos/current/i686/glibc-devel-${version}_${_devrev}.i686.xbps"
|
2010-01-29 17:46:21 +00:00
|
|
|
build_style=custom-install
|
2008-11-03 06:12:53 +00:00
|
|
|
short_desc="The GNU C library (32 bits)"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2010-05-15 13:40:53 +00:00
|
|
|
checksum="
|
2011-07-11 16:47:06 +00:00
|
|
|
beafe16fd289cc4a7488a0c260e576863f2ed9ef97aaba08128c5a848443fc00
|
|
|
|
1f892393c2b7a8edd4c50073b735db089c52dcb02f8618d642a659ae496c455b"
|
2008-11-03 06:12:53 +00: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 08:16:31 +00:00
|
|
|
This package installs the 32 bit libraries for x86_64 systems."
|
2008-11-03 06:12:53 +00:00
|
|
|
|
2010-05-15 13:40:53 +00:00
|
|
|
subpackages="${pkgname}-devel"
|
2010-01-29 17:46:21 +00:00
|
|
|
nostrip=yes
|
|
|
|
noextract=yes
|
|
|
|
noverifyrdeps=yes
|
2008-11-03 07:38:38 +00:00
|
|
|
only_for_archs=x86_64
|
2008-11-03 06:12:53 +00:00
|
|
|
|
2010-05-15 13:40:53 +00:00
|
|
|
Add_dependency run glibc
|
|
|
|
Add_dependency build bsdtar
|
2008-11-03 06:12:53 +00:00
|
|
|
|
2010-01-29 17:46:21 +00:00
|
|
|
do_install()
|
2008-11-03 06:12:53 +00:00
|
|
|
{
|
2010-05-15 13:40:53 +00:00
|
|
|
for f in ${distfiles}; do
|
|
|
|
local srcfile="${XBPS_SRCDISTDIR}/$(basename ${f})"
|
2011-07-11 16:47:06 +00:00
|
|
|
bsdtar xf ${srcfile} -C ${wrksrc}
|
2010-05-15 13:40:53 +00:00
|
|
|
done
|
|
|
|
|
2011-07-11 16:47:06 +00:00
|
|
|
vinstall usr/include/gnu/stubs-32.h 644 usr/include/gnu
|
|
|
|
vinstall usr/include/sys/elf.h 644 usr/include/sys
|
|
|
|
vinstall usr/include/sys/vm86.h 644 usr/include/sys
|
2010-01-29 17:46:21 +00:00
|
|
|
|
2011-07-11 16:47:06 +00:00
|
|
|
vmkdir lib
|
|
|
|
vmkdir lib32
|
|
|
|
vmkdir usr/lib32/gconv
|
|
|
|
vcopy "lib/*.so*" lib32
|
|
|
|
vcopy "usr/lib/gconv/*" usr/lib32/gconv
|
|
|
|
|
|
|
|
ln -sf /lib32/ld-linux.so.2 ${DESTDIR}/lib/ld-linux.so.2
|
|
|
|
|
|
|
|
install -m644 usr/lib/*.{a,o} ${DESTDIR}/usr/lib32
|
|
|
|
install -m755 usr/lib/*.so ${DESTDIR}/usr/lib32
|
2010-05-15 13:40:53 +00:00
|
|
|
|
|
|
|
# Add /lib32 and /usr/lib32 into ld.so(8) cache.
|
|
|
|
install -d ${DESTDIR}/etc/ld.so.conf.d
|
|
|
|
{ echo "/lib32"; echo "/usr/lib32"; } \
|
2011-07-11 16:47:06 +00:00
|
|
|
> ${DESTDIR}/etc/ld.so.conf.d/glibc32.conf
|
2010-05-15 13:40:53 +00:00
|
|
|
|
2011-07-11 16:47:06 +00:00
|
|
|
chmod 644 ${DESTDIR}/etc/ld.so.conf.d/glibc32.conf && ldconfig
|
2010-05-15 16:13:16 +00:00
|
|
|
|
2010-05-15 16:38:30 +00:00
|
|
|
# Fix some .so files to find stuff in lib32 dirs.
|
|
|
|
for f in libc libpthread; do
|
|
|
|
sed -i -e "s|/lib/|/lib32/|g" \
|
2011-07-11 16:47:06 +00:00
|
|
|
${DESTDIR}/usr/lib32/${f}.so
|
2010-05-15 16:38:30 +00:00
|
|
|
done
|
2008-11-03 06:12:53 +00:00
|
|
|
}
|