From f46905490e191872476339287e7d412547356d6e Mon Sep 17 00:00:00 2001 From: xhaa123 Date: Mon, 14 Oct 2024 15:38:52 +0800 Subject: [PATCH] binutils 2.42-1 --- PKGBUILD | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 PKGBUILD diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..ac778ae --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,57 @@ +# 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 +pkgname=binutils +pkgver=2.42 +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=(f6e4d41fd5fc778b06b7891457b3620da5ecea1006c6a4a41ae998109f85a800) + +prepare() { + cd ${pkgname}-${pkgver} + + mkdir -v build + +} + +build() { + cd ${pkgname}-${pkgver}/build + + ${BUILD_CONFIGURE} \ + --target=${CHOST} \ + --sysconfdir=/etc \ + --enable-cet \ + --enable-gold \ + --enable-ld=default \ + --enable-plugins \ + --enable-shared \ + --disable-werror \ + --enable-64-bit-bfd \ + --with-system-zlib \ + --with-pic \ + --enable-default-execstack=no \ + --disable-gdb \ + --enable-default-hash-style=gnu + + make tooldir=/usr +} + +package() { + cd ${pkgname}-${pkgver}/build + + make DESTDIR=${pkgdir} tooldir=/usr install + + rm ${pkgdir}/usr/share/man/man1/{dlltool,windres,windmc}* + +}