From 805fc50cf032f636bd73f8f68e5bb3720a728205 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 12 Jul 2014 17:42:21 +0200 Subject: [PATCH] New build_style: "fetch" to only fetch files and copy them to ${wrksrc}. This is based on the first approach by chneukirchen. --- Manual.md | 2 ++ common/build_style/fetch.sh | 9 +++++++++ 2 files changed, 11 insertions(+) create mode 100644 common/build_style/fetch.sh diff --git a/Manual.md b/Manual.md index 1b2ef60b9fd..0323de66104 100644 --- a/Manual.md +++ b/Manual.md @@ -392,6 +392,8 @@ can be passed in via `configure_args`. - `configure` For packages that use non-GNU configure scripts, at least `--prefix=/usr` should be passed in via `configure_args`. +- `fetch` For packages that only fetch files and are installed as is via `do_install()`. + - `gnu-configure` For packages that use GNU configure scripts, additional configuration arguments can be passed in via `configure_args`. diff --git a/common/build_style/fetch.sh b/common/build_style/fetch.sh new file mode 100644 index 00000000000..66e75bf3e8f --- /dev/null +++ b/common/build_style/fetch.sh @@ -0,0 +1,9 @@ +# fetch build_style: fetches and copies files to ${wrksrc}. + +do_extract() { + mkdir -p ${wrksrc} + for f in ${distfiles}; do + curfile=$(basename "${f#*>}") + cp ${XBPS_SRCDISTDIR}/${pkgname}-${version}/${curfile} ${wrksrc}/${curfile} + done +}