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:
parent
407a882b1a
commit
805fc50cf0
2 changed files with 11 additions and 0 deletions
|
@ -392,6 +392,8 @@ can be passed in via `configure_args`.
|
||||||
- `configure` For packages that use non-GNU configure scripts, at least `--prefix=/usr`
|
- `configure` For packages that use non-GNU configure scripts, at least `--prefix=/usr`
|
||||||
should be passed in via `configure_args`.
|
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
|
- `gnu-configure` For packages that use GNU configure scripts, additional configuration
|
||||||
arguments can be passed in via `configure_args`.
|
arguments can be passed in via `configure_args`.
|
||||||
|
|
||||||
|
|
9
common/build_style/fetch.sh
Normal file
9
common/build_style/fetch.sh
Normal 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
|
||||||
|
}
|
Loading…
Reference in a new issue