binutils: converted to subpkgs.

--HG--
extra : convert_revision : b13640fb0e5be76c90b3920359597fc4a40a141e
This commit is contained in:
Juan RP 2009-02-20 07:18:26 +01:00
parent 6966c9ffde
commit 5939c1dbd4
7 changed files with 65 additions and 0 deletions

1
templates/binutils-dev Symbolic link
View File

@ -0,0 +1 @@
binutils

1
templates/binutils-docs Symbolic link
View File

@ -0,0 +1 @@
binutils

1
templates/binutils-locale Symbolic link
View File

@ -0,0 +1 @@
binutils

View File

@ -0,0 +1,22 @@
# Template file for 'binutils-dev'.
#
short_desc="${short_desc} (development files)"
long_desc="${long_desc}
This package contains files for development, headers, static libs, etc."
run_depends="binutils-2.19"
do_install()
{
local destdir=${XBPS_DESTDIR}/${pkgname}-${version}
local origdir=${XBPS_DESTDIR}/${sourcepkg}-${version}
mkdir -p ${destdir}/usr/lib
mv ${origdir}/usr/include ${destdir}/usr
for f in libopcodes libbfd libiberty; do
mv ${origdir}/usr/lib/${f}.*a ${destdir}/usr/lib
if [ -f ${origdir}/usr/lib/${f}.so ]; then
mv ${origdir}/usr/lib/${f}.so ${destdir}/usr/lib
fi
done
}

View File

@ -0,0 +1,21 @@
# Template file for 'binutils-docs'.
#
short_desc="${short_desc} (documentation)"
long_desc="${long_desc}
This package contains the ${sourcepkg} documentation: manual pages
and info files."
run_depends=
noarch=yes
do_install()
{
local destdir=${XBPS_DESTDIR}/${pkgname}-${version}
# Move manpages and info files.
mkdir -p ${destdir}/usr/share
mv ${XBPS_DESTDIR}/${sourcepkg}-${version}/usr/share/man \
${destdir}/usr/share
mv ${XBPS_DESTDIR}/${sourcepkg}-${version}/usr/share/info \
${destdir}/usr/share
}

View File

@ -0,0 +1,17 @@
# Template file for 'binutils-locales'.
#
short_desc="${short_desc} (locales)"
long_desc="${long_desc}
This package contains the ${sourcepkg} locale files, for non US users."
run_depends=
noarch=yes
do_install()
{
local destdir=${XBPS_DESTDIR}/${pkgname}-${version}
mkdir -p ${destdir}/usr/share
mv ${XBPS_DESTDIR}/${sourcepkg}-${version}/usr/share/locale \
${destdir}/usr/share
}

View File

@ -1,5 +1,6 @@
# Template file for 'binutils'
pkgname=binutils
sourcepkg=binutils
version=2.19
distfiles="http://ftp.gnu.org/gnu/binutils/$pkgname-$version.tar.bz2"
build_style=gnu_configure
@ -25,3 +26,4 @@ long_desc="
base_chroot=yes
run_depends="glibc-2.8"
subpackages="dev docs locale"