binutils 2.43.1-1

This commit is contained in:
xhaa123 2024-09-07 23:18:11 +08:00
parent 40281a471c
commit 89b8aab358

52
binutils/PKGBUILD Normal file
View File

@ -0,0 +1,52 @@
# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.
# Maintainer: Future Linux Team <future_linux@163.com>
pkgname=binutils
pkgver=2.43.1
pkgrel=1
pkgdesc="A set of programs to assemble and manipulate binary and object files"
arch=('x86_64')
url="https://www.gnu.org/software/binutils/"
license=('GPL-2.0-or-later' 'GPL-3.0-or-later' 'LGPL-2.0-or-later' 'LGPL-3.0-or-later' 'GFDL-1.3' 'FSFAP')
groups=('base-devel')
depends=('glibc' 'zlib' 'zstd')
backup=(etc/gprofng.rc)
options=('!distcc' '!ccache')
source=(https://sourceware.org/pub/${pkgname}/releases/${pkgname}-${pkgver}.tar.xz)
sha256sums=(13f74202a3c4c51118b797a39ea4200d3f6cfbe224da6d1d95bb938480132dfd)
prepare() {
cd ${pkgname}-${pkgver}
mkdir -v build
}
build() {
cd ${pkgname}-${pkgver}/build
${BUILD_CONFIGURE} \
--target=${CHOST} \
--sysconfdir=/etc \
--enable-gold \
--enable-ld=default \
--enable-plugins \
--enable-shared \
--disable-werror \
--enable-64-bit-bfd \
--with-system-zlib \
--enable-default-hash-style=gnu \
--enable-multilib
make tooldir=/usr
}
package() {
cd ${pkgname}-${pkgver}/build
make DESTDIR=${pkgdir} tooldir=/usr install
}