blob: 0aace90930868c99d35cf4baebf61c4a34bff511 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
# Contributor: Jeroen Bollen <jbinero@gmail.com>
pkgname=x86_64-efi-pe-binutils
pkgver=2.34
pkgrel=1
pkgdesc="A set of programs to assemble and manipulate binary and object files for the x86_64 architecture in the Portable Executable format. "
url="http://www.gnu.org/software/binutils/"
arch=('x86_64')
license=('GPL')
depends=('zlib')
source=(https://ftp.gnu.org/gnu/binutils/binutils-${pkgver}.tar.xz{,.sig})
validpgpkeys=(3A24BC1E8FB409FA9F14371813FCEF89DD9E3C4F)
sha512sums=('2c7976939dcf5e8c5b7374cccd39bfe803b1bec73c6abfa0eb17c24e1942574c6bdb874c66a092a82adc443182eacd8a5a8001c19a76101f0c7ba40c27de0bbd'
'SKIP')
_target="x86_64-efi-pe"
prepare() {
cd ${srcdir}/binutils-${pkgver}
sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure
mkdir ${srcdir}/binutils-build
}
build() {
cd ${srcdir}/binutils-build
${srcdir}/binutils-${pkgver}/configure \
--prefix=/usr \
--with-lib-path=/usr/lib:/usr/local/lib \
--program-prefix=${_target}- \
--target=${_target} --disable-werror
# check the host environment and makes sure all the necessary tools are available
make configure-host
make tooldir=/usr
}
package() {
cd ${srcdir}/binutils-build
make prefix=${pkgdir}/usr tooldir=${pkgdir}/usr install
# remove these files as they are already in the system
# (with native binutils)
rm -Rf ${pkgdir}/usr/share/
# remove conflicting binaries
find ${pkgdir}/usr/bin/ -type f -not -name "${_target}-*" -delete
}
|