diff --git a/srcpkgs/axel/template b/srcpkgs/axel/template new file mode 100644 index 00000000000..84a2f789c70 --- /dev/null +++ b/srcpkgs/axel/template @@ -0,0 +1,21 @@ +# Template file for 'axel' +pkgname=axel +version=2.4 +revision=1 +wrksrc=axel-2.4 +build_style=gnu-configure +short_desc="Download accelerator for FTP and HTTP" +maintainer="Jürgen Buchmüller " +license="GPL-2" +homepage="https://axel.alioth.debian.org/" +distfiles="${DEBIAN_SITE}/main/a/axel/axel_${version}.orig.tar.gz" +checksum="359a57ab4e354bcb6075430d977c59d33eb3e2f1415a811948fa8ae657ca8036" +only_for_archs="x86_64 x86_64-musl i686 i686-musl armv6hf armv6hf-musl armv7hf armv7hf-musl" + +do_configure() { + ./configure --prefix=/usr + # Change Makefile.settings to not use -Os, because we have no gcc_s library + sed -i Makefile.settings -e 's; -Os;;' + # Change CFLAGS= to CFLAGS+= to keep predefined flags + sed -i Makefile.settings -e 's;CFLAGS=;CFLAGS+=;' +}