46 lines
1010 B
Bash
46 lines
1010 B
Bash
# Template file for 'avr-binutils'
|
|
pkgname=avr-binutils
|
|
version=2.31.1
|
|
revision=1
|
|
wrksrc="binutils-$version"
|
|
short_desc="GNU binary utilities for AVR"
|
|
maintainer="allan <mail@may.mooo.com>"
|
|
license="GPL-3"
|
|
homepage="http://www.gnu.org/software/binutils/"
|
|
distfiles="$GNU_SITE/binutils/binutils-$version.tar.gz"
|
|
checksum=e88f8d36bd0a75d3765a4ad088d819e35f8d7ac6288049780e2fefcad18dde88
|
|
|
|
makedepends="zlib-devel"
|
|
|
|
do_configure() {
|
|
./configure \
|
|
--disable-werror \
|
|
--enable-ld=default \
|
|
--enable-shared \
|
|
--enable-gold \
|
|
--enable-plugins \
|
|
--enable-threads \
|
|
--enable-install-libbfd \
|
|
--prefix=/usr \
|
|
--build=x86_64-unknown-linux-gnu \
|
|
--host=$XBPS_CROSS_TRIPLET \
|
|
--target=avr \
|
|
--with-pic
|
|
|
|
make configure-host
|
|
}
|
|
|
|
do_build() {
|
|
make tooldir=/usr
|
|
}
|
|
|
|
do_install() {
|
|
make prefix="$DESTDIR"/usr tooldir="$DESTDIR"/usr install
|
|
}
|
|
|
|
post_install() {
|
|
rm -rf "$DESTDIR"/usr/share/info
|
|
rm -rf "$DESTDIR"/usr/share/locale
|
|
rm "$DESTDIR"/usr/bin/{ar,as,nm,objcopy,objdump,ranlib,strip,readelf}
|
|
}
|