ae69000001
* arduino and antiword is kept at -Np0 ```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
22 lines
767 B
Bash
22 lines
767 B
Bash
# Template file for 'avr-binutils'
|
|
pkgname=avr-binutils
|
|
version=2.32
|
|
revision=1
|
|
wrksrc="binutils-$version"
|
|
build_style=gnu-configure
|
|
configure_args="--disable-werror --enable-shared --enable-gold
|
|
--enable-plugins --enable-install-libbfd --target=avr --with-pic"
|
|
make_install_args="tooldir=/usr"
|
|
makedepends="zlib-devel"
|
|
short_desc="GNU binary utilities for AVR"
|
|
maintainer="allan <mail@may.mooo.com>"
|
|
license="GPL-3.0-only"
|
|
homepage="http://www.gnu.org/software/binutils/"
|
|
distfiles="$GNU_SITE/binutils/binutils-$version.tar.xz"
|
|
checksum=0ab6c55dd86a92ed561972ba15b9b70a8b9f75557f896446c82e8b36e473ee04
|
|
|
|
post_install() {
|
|
rm -rf "$DESTDIR"/usr/share/info \
|
|
"$DESTDIR"/usr/share/locale \
|
|
"$DESTDIR"/usr/bin/{ar,as,nm,objcopy,objdump,ranlib,strip,readelf}
|
|
}
|