diff options
author | Bartłomiej Piotrowski | 2018-01-07 18:32:12 +0100 |
---|---|---|
committer | Bartłomiej Piotrowski | 2018-01-07 18:32:12 +0100 |
commit | 3e14383fc0b3eeff394fb1946fc04f238c5c75a8 (patch) | |
tree | d289effc36635787e801663cf16873615dc420aa | |
download | aur-3e14383fc0b3eeff394fb1946fc04f238c5c75a8.tar.gz |
Import from official repositories
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 50 |
2 files changed, 70 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..38d53448f3c9 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = mingw-w64-binutils + pkgdesc = Cross binutils for the MinGW-w64 cross-compiler + pkgver = 2.29 + pkgrel = 1 + url = http://www.gnu.org/software/binutils + arch = x86_64 + groups = mingw-w64-toolchain + groups = mingw-w64 + license = GPL + depends = zlib + options = !libtool + options = !emptydirs + source = https://ftp.gnu.org/gnu/binutils/binutils-2.29.tar.gz + source = https://ftp.gnu.org/gnu/binutils/binutils-2.29.tar.gz.sig + validpgpkeys = EAF1C276A747E9ED86210CBAC3126D3B4AE55E93 + sha256sums = 172e8c89472cf52712fd23a9f14e9bca6182727fb45b0f8f482652a83d5a11b4 + sha256sums = SKIP + +pkgname = mingw-w64-binutils + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..4985f6a1dd38 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,50 @@ +# $Id: PKGBUILD 266875 2017-11-15 14:29:11Z foutrelis $ +# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> +# Maintainer: rubenvb vanboxem <dottie> ruben <attie> gmail <dottie> com + +_targets="i686-w64-mingw32 x86_64-w64-mingw32" + +pkgname=mingw-w64-binutils +pkgver=2.29 +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=('EAF1C276A747E9ED86210CBAC3126D3B4AE55E93') +source=("https://ftp.gnu.org/gnu/binutils/binutils-${pkgver}.tar.gz"{,.sig}) +sha256sums=('172e8c89472cf52712fd23a9f14e9bca6182727fb45b0f8f482652a83d5a11b4' + 'SKIP') + +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 \ + --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 +} |