chroot-binutils: update to 2.22.52.0.4.
This commit is contained in:
parent
e99cc70bff
commit
40106f9181
1 changed files with 23 additions and 14 deletions
|
@ -1,18 +1,17 @@
|
||||||
# Template file for 'chroot-binutils'
|
# Template file for 'chroot-binutils'
|
||||||
pkgname=chroot-binutils
|
pkgname=chroot-binutils
|
||||||
version=2.22
|
version=2.22.52.0.4
|
||||||
wrksrc="binutils-${version}"
|
|
||||||
build_style=gnu-configure
|
|
||||||
configure_args="--disable-shared --enable-threads --disable-plugins
|
|
||||||
--enable-64-bit-bfd --with-mmap --disable-bootstrap --enable-multilib"
|
|
||||||
make_install_args="tooldir=/usr"
|
|
||||||
distfiles="${GNU_SITE}/binutils/binutils-$version.tar.bz2"
|
|
||||||
revision=1
|
revision=1
|
||||||
|
wrksrc="binutils-${version}"
|
||||||
|
bootstrap=yes
|
||||||
|
provides="binutils-${version}"
|
||||||
|
conflicts="binutils>=0"
|
||||||
short_desc="GNU binary utilities -- for xbps-src use"
|
short_desc="GNU binary utilities -- for xbps-src use"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
homepage="http://www.gnu.org/software/binutils/"
|
homepage="http://www.gnu.org/software/binutils/"
|
||||||
license="GPL-3"
|
license="GPL-3"
|
||||||
checksum=6c7af8ed1c8cf9b4b9d6e6fe09a3e1d3d479fe63984ba8b9b26bf356b6313ca9
|
distfiles="${KERNEL_SITE}/devel/binutils/binutils-$version.tar.xz"
|
||||||
|
checksum=d88ea0bc8591098a1666d9b97b93d81098816dd16faff90d3ed15072b40e1caf
|
||||||
long_desc="
|
long_desc="
|
||||||
The GNU binutils package contains essential tools to assemble, link and
|
The GNU binutils package contains essential tools to assemble, link and
|
||||||
manipulate binary and object files. They are often used with a compiler
|
manipulate binary and object files. They are often used with a compiler
|
||||||
|
@ -28,18 +27,28 @@ long_desc="
|
||||||
|
|
||||||
This package is only meant to be used by xbps-src, don't install it manually."
|
This package is only meant to be used by xbps-src, don't install it manually."
|
||||||
|
|
||||||
bootstrap=yes
|
if [ -n "$IN_CHROOT" ]; then
|
||||||
provides="binutils-${version}"
|
makedepends="flex perl"
|
||||||
conflicts="binutils>=0"
|
fi
|
||||||
|
|
||||||
pre_install() {
|
do_configure() {
|
||||||
|
./configure ${CONFIGURE_SHARED_ARGS} --disable-shared \
|
||||||
|
--enable-threads --disable-plugins --enable-64-bit-bfd \
|
||||||
|
--with-mmap --disable-bootstrap --enable-multilib
|
||||||
|
}
|
||||||
|
|
||||||
|
do_build() {
|
||||||
|
make
|
||||||
|
}
|
||||||
|
|
||||||
|
do_install() {
|
||||||
if [ "$XBPS_MACHINE" = "x86_64" ]; then
|
if [ "$XBPS_MACHINE" = "x86_64" ]; then
|
||||||
mkdir -p ${DESTDIR}/usr/lib
|
mkdir -p ${DESTDIR}/usr/lib
|
||||||
cd ${DESTDIR}/usr && ln -s lib lib64 && cd ${wrksrc}
|
cd ${DESTDIR}/usr && ln -s lib lib64 && cd ${wrksrc}
|
||||||
fi
|
fi
|
||||||
}
|
|
||||||
|
|
||||||
post_install() {
|
make DESTDIR=${DESTDIR} tooldir=/usr install
|
||||||
|
|
||||||
[ -h ${DESTDIR}/usr/lib64 ] && rm -f ${DESTDIR}/usr/lib64
|
[ -h ${DESTDIR}/usr/lib64 ] && rm -f ${DESTDIR}/usr/lib64
|
||||||
rm -f ${DESTDIR}/usr/lib/*.a
|
rm -f ${DESTDIR}/usr/lib/*.a
|
||||||
rm -rf ${DESTDIR}/usr/share ${DESTDIR}/usr/include
|
rm -rf ${DESTDIR}/usr/share ${DESTDIR}/usr/include
|
||||||
|
|
Loading…
Reference in a new issue