45 lines
965 B
Text
45 lines
965 B
Text
|
# Template file for 'avr-binutils'
|
||
|
pkgname=avr-binutils
|
||
|
version=2.25
|
||
|
revision=1
|
||
|
short_desc="GNU binary utilities for AVR"
|
||
|
maintainer="allan <mail@may.mooo.com>"
|
||
|
homepage="http://www.gnu.org/software/binutils/"
|
||
|
license="GPL-3"
|
||
|
distfiles="$GNU_SITE/binutils/binutils-$version.tar.gz"
|
||
|
checksum=cccf377168b41a52a76f46df18feb8f7285654b3c1bd69fc8265cb0fc6902f2d
|
||
|
wrksrc="binutils-$version"
|
||
|
only_for_archs="i686 x86_64"
|
||
|
|
||
|
hostmakedepends="zlib-devel"
|
||
|
|
||
|
do_configure() {
|
||
|
./configure \
|
||
|
--disable-werror \
|
||
|
--enable-ld=default \
|
||
|
--enable-shared \
|
||
|
--enable-gold \
|
||
|
--enable-plugins \
|
||
|
--enable-threads \
|
||
|
--enable-install-libbfd \
|
||
|
--prefix=/usr \
|
||
|
--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}
|
||
|
}
|