From 6b66801f8213f9fb2c0247fc084a207bc8e83153 Mon Sep 17 00:00:00 2001 From: jbu Date: Thu, 23 Apr 2015 11:34:30 +0200 Subject: [PATCH 1/4] New package: axel-2.4 --- srcpkgs/axel/template | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 srcpkgs/axel/template 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+=;' +} From ff5b9dcf84223bccfe24034822ba74775a1387be Mon Sep 17 00:00:00 2001 From: jbu Date: Thu, 23 Apr 2015 11:44:39 +0200 Subject: [PATCH 2/4] Remove only_for_archs --- srcpkgs/axel/template | 1 - 1 file changed, 1 deletion(-) diff --git a/srcpkgs/axel/template b/srcpkgs/axel/template index 84a2f789c70..61844c9033e 100644 --- a/srcpkgs/axel/template +++ b/srcpkgs/axel/template @@ -10,7 +10,6 @@ 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 From 82272bd23dc0262f22d72de263e9ff00a6eae18a Mon Sep 17 00:00:00 2001 From: jbu Date: Thu, 23 Apr 2015 11:50:54 +0200 Subject: [PATCH 3/4] Set conf_files to /etc/axelrc and replace strip with dummy echo --- srcpkgs/axel/template | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/srcpkgs/axel/template b/srcpkgs/axel/template index 61844c9033e..795d63beb50 100644 --- a/srcpkgs/axel/template +++ b/srcpkgs/axel/template @@ -4,6 +4,7 @@ version=2.4 revision=1 wrksrc=axel-2.4 build_style=gnu-configure +conf_files=/etc/axelrc short_desc="Download accelerator for FTP and HTTP" maintainer="Jürgen Buchmüller " license="GPL-2" @@ -11,10 +12,11 @@ homepage="https://axel.alioth.debian.org/" distfiles="${DEBIAN_SITE}/main/a/axel/axel_${version}.orig.tar.gz" checksum="359a57ab4e354bcb6075430d977c59d33eb3e2f1415a811948fa8ae657ca8036" -do_configure() { - ./configure --prefix=/usr +post_configure() { # 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+=;' + # Replace strip by dummy command echo + sed -i Makefile.settings -e 's;STRIP=strip;STRIP=echo;' } From 3913aa0d2bb10f9324caec6c116071517931cc90 Mon Sep 17 00:00:00 2001 From: jbu Date: Thu, 23 Apr 2015 11:51:42 +0200 Subject: [PATCH 4/4] Remove redundant wrksrc --- srcpkgs/axel/template | 1 - 1 file changed, 1 deletion(-) diff --git a/srcpkgs/axel/template b/srcpkgs/axel/template index 795d63beb50..ecbf8efcdfe 100644 --- a/srcpkgs/axel/template +++ b/srcpkgs/axel/template @@ -2,7 +2,6 @@ pkgname=axel version=2.4 revision=1 -wrksrc=axel-2.4 build_style=gnu-configure conf_files=/etc/axelrc short_desc="Download accelerator for FTP and HTTP"