2008-11-03 07:12:53 +01:00
|
|
|
# Template file for 'glibc32'
|
|
|
|
pkgname=glibc32
|
2012-07-10 10:34:34 +02:00
|
|
|
version=2.16.0
|
|
|
|
revision=5
|
2010-05-15 15:40:53 +02:00
|
|
|
distfiles="
|
2012-06-30 19:32:28 +02:00
|
|
|
http://xbps.hosting-unlimited.org/binpkgs/i686/glibc-${version}_${revision}.i686.xbps
|
|
|
|
http://xbps.hosting-unlimited.org/binpkgs/i686/glibc-devel-${version}_${revision}.i686.xbps"
|
2012-07-10 10:34:34 +02:00
|
|
|
depends="glibc>=$version"
|
2012-05-23 18:26:56 +02:00
|
|
|
makedepends="bsdtar"
|
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="
|
2012-07-10 10:34:34 +02:00
|
|
|
5db9e003deb8468ea6a38e8b87202ba9fc5e5077bad3825b4b9c64b6f03b418e
|
|
|
|
893b25374bdf5d8198afa79b5b7d980e7fd82e4e54f3c33e2057c15a30619c41"
|
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
|
|
|
|
2012-02-10 10:44:37 +01:00
|
|
|
do_install() {
|
2010-05-15 15:40:53 +02:00
|
|
|
for f in ${distfiles}; do
|
|
|
|
local srcfile="${XBPS_SRCDISTDIR}/$(basename ${f})"
|
2011-07-11 18:47:06 +02:00
|
|
|
bsdtar xf ${srcfile} -C ${wrksrc}
|
2010-05-15 15:40:53 +02:00
|
|
|
done
|
|
|
|
|
2011-07-11 18:47:06 +02:00
|
|
|
vinstall usr/include/gnu/stubs-32.h 644 usr/include/gnu
|
2010-01-29 18:46:21 +01:00
|
|
|
|
2012-07-10 10:34:34 +02:00
|
|
|
vmkdir usr/lib
|
2011-07-11 18:47:06 +02:00
|
|
|
vmkdir usr/lib32/gconv
|
2012-07-10 10:34:34 +02:00
|
|
|
vcopy "lib/*.so*" usr/lib32
|
2011-07-11 18:47:06 +02:00
|
|
|
vcopy "usr/lib/gconv/*" usr/lib32/gconv
|
|
|
|
|
2012-07-10 10:34:34 +02:00
|
|
|
cd ${DESTDIR}/usr/lib && ln -sf ../lib32/ld-linux.so.2 .
|
|
|
|
cd ${wrksrc}
|
2011-07-11 18:47:06 +02:00
|
|
|
|
|
|
|
install -m644 usr/lib/*.{a,o} ${DESTDIR}/usr/lib32
|
|
|
|
install -m755 usr/lib/*.so ${DESTDIR}/usr/lib32
|
2010-05-15 15:40:53 +02:00
|
|
|
|
|
|
|
# Add /lib32 and /usr/lib32 into ld.so(8) cache.
|
|
|
|
install -d ${DESTDIR}/etc/ld.so.conf.d
|
2012-07-10 10:34:34 +02:00
|
|
|
echo "/usr/lib32" > ${DESTDIR}/etc/ld.so.conf.d/glibc32.conf
|
2010-05-15 15:40:53 +02:00
|
|
|
|
2011-07-11 18:47:06 +02:00
|
|
|
chmod 644 ${DESTDIR}/etc/ld.so.conf.d/glibc32.conf && ldconfig
|
2010-05-15 18:13:16 +02:00
|
|
|
|
2010-05-15 18:38:30 +02: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 18:47:06 +02:00
|
|
|
${DESTDIR}/usr/lib32/${f}.so
|
2010-05-15 18:38:30 +02:00
|
|
|
done
|
2008-11-03 07:12:53 +01:00
|
|
|
}
|