diff --git a/srcpkgs/sdcc/template b/srcpkgs/sdcc/template new file mode 100644 index 00000000000..a53397c944f --- /dev/null +++ b/srcpkgs/sdcc/template @@ -0,0 +1,20 @@ +# Template file for 'sdcc' +pkgname=sdcc +version=3.7.0 +revision=1 +only_for_archs="i686 x86_64 x86_64-musl" +wrksrc="${pkgname}" +build_style=gnu-configure +hostmakedepends="flex bison gputils" +makedepends="boost-devel" +short_desc="Retargettable ANSI C compiler" +maintainer="Leandro Vital " +license="GPL-2.0-or-later" +homepage="http://sdcc.sourceforge.net/" +distfiles="${SOURCEFORGE_SITE}/sdcc/${pkgname}-src-${version}.tar.bz2" +checksum=854d47094698b06142df3d5fc646bb540d497ab4073ad2f051b8ec2141df948e +nostrip=yes + +post_extract() { + sed -i 's|CC -E|CC -O2 -E|g' ${wrksrc}/support/sdbinutils/libiberty/configure +}