2008-11-03 06:12:53 +00:00
|
|
|
# Template file for 'glibc32'
|
|
|
|
pkgname=glibc32
|
2014-02-22 08:08:48 +00:00
|
|
|
version=2.19
|
|
|
|
revision=1
|
2010-05-15 13:40:53 +00:00
|
|
|
distfiles="
|
2014-02-22 08:08:48 +00:00
|
|
|
http://repo.voidlinux.eu/current/glibc-${version}_${revision}.i686.xbps
|
|
|
|
http://repo.voidlinux.eu/current//glibc-devel-${version}_${revision}.i686.xbps"
|
2008-11-03 06:12:53 +00:00
|
|
|
short_desc="The GNU C library (32 bits)"
|
2013-03-29 12:42:31 +00:00
|
|
|
homepage="http://www.gnu.org/software/libc"
|
|
|
|
license="GPL-2, LGPL-2.1, BSD"
|
2008-11-03 06:12:53 +00:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2010-05-15 13:40:53 +00:00
|
|
|
checksum="
|
2014-02-22 08:08:48 +00:00
|
|
|
7da0f904fa49516962ee0f7f2989614dcfea7ee85799abbae27691edff49c0ca
|
|
|
|
38e99837ee26bf0e7f95913cd64f3dd3e44c760ed83c727bf9bed322f54e1536"
|
2008-11-03 06:12:53 +00:00
|
|
|
|
2008-11-03 07:38:38 +00:00
|
|
|
only_for_archs=x86_64
|
2014-01-01 15:10:11 +00:00
|
|
|
nostrip=yes
|
|
|
|
noverifyrdeps=yes
|
2014-02-22 08:08:48 +00:00
|
|
|
create_wrksrc=yes
|
2014-01-01 15:10:11 +00:00
|
|
|
depends="glibc>=$version"
|
2008-11-03 06:12:53 +00:00
|
|
|
|
2014-02-22 08:08:48 +00:00
|
|
|
do_extract() {
|
|
|
|
:
|
|
|
|
}
|
|
|
|
|
2012-02-10 09:44:37 +00:00
|
|
|
do_install() {
|
2010-05-15 13:40:53 +00:00
|
|
|
for f in ${distfiles}; do
|
|
|
|
local srcfile="${XBPS_SRCDISTDIR}/$(basename ${f})"
|
2014-02-22 08:08:48 +00:00
|
|
|
tar 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
|
2012-07-10 08:34:34 +00:00
|
|
|
vmkdir usr/lib
|
2013-04-03 13:30:57 +00:00
|
|
|
vmkdir usr/lib32/gconv
|
|
|
|
install -m644 usr/lib/*.{a,o} ${DESTDIR}/usr/lib32
|
|
|
|
install -m755 usr/lib/*.so ${DESTDIR}/usr/lib32
|
|
|
|
vcopy "usr/lib/gconv/*" usr/lib32/gconv
|
|
|
|
cd ${DESTDIR}/usr/lib && ln -sf ../lib32/ld-linux.so.2 .
|
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
|
2012-07-10 08:34:34 +00:00
|
|
|
echo "/usr/lib32" > ${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
|
|
|
}
|
2013-04-12 13:11:12 +00:00
|
|
|
|
|
|
|
glibc32-devel_package() {
|
|
|
|
nostrip=yes
|
|
|
|
noverifyrdeps=yes
|
|
|
|
depends="glibc-devel>=$version glibc32>=$version"
|
2014-01-01 15:10:11 +00:00
|
|
|
short_desc+=" - development files"
|
2013-04-12 13:11:12 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove "usr/lib32/*.a"
|
|
|
|
vmove "usr/lib32/*.o"
|
|
|
|
}
|
|
|
|
}
|