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 +}