New build_style: "fetch" to only fetch files and copy them to ${wrksrc}.

This is based on the first approach by chneukirchen.
This commit is contained in:
Juan RP 2014-07-12 17:42:21 +02:00
parent 407a882b1a
commit 805fc50cf0
2 changed files with 11 additions and 0 deletions

View file

@ -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`.

View file

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