mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-25 20:25:28 +03:00
57 lines
1.5 KiB
Text
57 lines
1.5 KiB
Text
# Contributor: Stefan Wagner <stw@bit-strickerei.de>
|
|
# Maintainer: Stefan Wagner <stw@bit-strickerei.de>
|
|
pkgname=binutils-avr
|
|
pkgver=2.32
|
|
pkgrel=0
|
|
pkgdesc="Tools necessary to build programs for AVR targets"
|
|
url="https://www.gnu.org/software/binutils/"
|
|
makedepends="gettext libtool autoconf automake"
|
|
arch="all"
|
|
license="GPL-2.0 GPL-3.0-or-later LGPL-2.0 BSD"
|
|
subpackages="$pkgname-doc"
|
|
source="https://ftp.gnu.org/gnu/binutils/binutils-$pkgver.tar.bz2
|
|
binutils-ld-fix-static-linking.patch"
|
|
|
|
builddir="$srcdir/binutils-$pkgver"
|
|
_workingdir="$srcdir/binutils-build"
|
|
|
|
# secfixes:
|
|
# 2.32-r0:
|
|
# - CVE-2018-19931
|
|
# - CVE-2018-19932
|
|
# - CVE-2018-20002
|
|
# - CVE-2018-20712
|
|
|
|
build() {
|
|
mkdir "$_workingdir"
|
|
cd "$_workingdir"
|
|
"$builddir"/configure \
|
|
--build="$CBUILD" \
|
|
--target=avr \
|
|
--with-lib-path=/usr/lib \
|
|
--prefix=/usr \
|
|
--enable-ld=default \
|
|
--enable-gold=yes \
|
|
--enable-plugins \
|
|
--disable-multilib \
|
|
--disable-werror \
|
|
--disable-nls
|
|
make tooldir=/usr
|
|
}
|
|
|
|
check() {
|
|
cd "$_workingdir"
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
cd "$_workingdir"
|
|
make tooldir=/usr install DESTDIR="$pkgdir"
|
|
rm -rf "$pkgdir"/usr/share/info
|
|
for bin in ar as nm objcopy objdump ranlib strip readelf; do
|
|
rm -f "$pkgdir"/usr/bin/"$bin"
|
|
done
|
|
}
|
|
|
|
sha512sums="99ec7ed2b5ebfd3ac16cecb1567ec4a72f81ac30717002d601708f7547b2f8122ffcce076c986f22894aede33c54c73012210a4e973ba9b6e2d87a242a2bee12 binutils-2.32.tar.bz2
|
|
ecee33b0e435aa704af1c334e560f201638ff79e199aa11ed78a72f7c9b46f85fbb227af5748e735fd681d1965fcc42ac81b0c8824e540430ce0c706c81e8b49 binutils-ld-fix-static-linking.patch"
|