[arch-commits] Commit in mingw-w64-binutils/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Fri Jul 31 20:11:32 UTC 2020
Date: Friday, July 31, 2020 @ 20:11:32
Author: felixonmars
Revision: 666395
archrelease: copy trunk to community-x86_64
Added:
mingw-w64-binutils/repos/community-x86_64/
mingw-w64-binutils/repos/community-x86_64/PKGBUILD
(from rev 666394, mingw-w64-binutils/trunk/PKGBUILD)
----------+
PKGBUILD | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
Copied: mingw-w64-binutils/repos/community-x86_64/PKGBUILD (from rev 666394, mingw-w64-binutils/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2020-07-31 20:11:32 UTC (rev 666395)
@@ -0,0 +1,49 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=mingw-w64-binutils
+pkgver=2.35
+pkgrel=1
+pkgdesc="Cross binutils for the MinGW-w64 cross-compiler"
+arch=('x86_64')
+url="http://www.gnu.org/software/binutils"
+license=('GPL')
+groups=('mingw-w64-toolchain' 'mingw-w64')
+depends=('zlib')
+options=('!libtool' '!emptydirs')
+validpgpkeys=('3A24BC1E8FB409FA9F14371813FCEF89DD9E3C4F') # Nick Clifton (Chief Binutils Maintainer) <nickc at redhat.com>
+source=("https://ftp.gnu.org/gnu/binutils/binutils-${pkgver}.tar.gz"{,.sig})
+sha256sums=('a3ac62bae4f339855b5449cfa9b49df90c635adbd67ecb8a0e7f3ae86a058da6'
+ 'SKIP')
+
+_targets="i686-w64-mingw32 x86_64-w64-mingw32"
+
+prepare() {
+ cd "$srcdir"/binutils-${pkgver}
+ #do not install libiberty
+ sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in
+ # hack! - libiberty configure tests for header files using "$CPP $CPPFLAGS"
+ sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure
+}
+
+build() {
+ for _target in $_targets; do
+ msg "Building ${_target} cross binutils"
+ mkdir -p "$srcdir"/binutils-${_target} && cd "${srcdir}/binutils-${_target}"
+ "$srcdir"/binutils-${pkgver}/configure --prefix=/usr \
+ --target=${_target} \
+ --infodir=/usr/share/info/${_target} \
+ --enable-lto --enable-plugins \
+ --enable-deterministic-archives \
+ --disable-multilib --disable-nls \
+ --disable-werror
+ make
+ done
+}
+
+package() {
+ for _target in ${_targets}; do
+ msg "Installing ${_target} cross binutils"
+ cd "$srcdir"/binutils-${_target}
+ make DESTDIR="$pkgdir" install
+ done
+}
More information about the arch-commits
mailing list