xbps-src: set wrksrc to $pkgname-$version unconditionally
This commit is contained in:
parent
af9931fd3b
commit
8c5358f792
|
@ -512,8 +512,7 @@ can be specified by prepending a commercial at (@).
|
|||
For tarballs you can find the contents checksum by using the command
|
||||
`tar xf <tarball.ext> --to-stdout | sha256sum`.
|
||||
|
||||
- `wrksrc` The directory name where the package sources are extracted, by default
|
||||
set to `${pkgname}-${version}`. If the top level directory of a package's `distfile` is different from the default, `wrksrc` must be set to the top level directory name inside the archive.
|
||||
- `wrksrc` The directory name where the package sources are extracted, set to `${pkgname}-${version}`.
|
||||
|
||||
- `build_wrksrc` A directory relative to `${wrksrc}` that will be used when building the package.
|
||||
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
# required variables
|
||||
#
|
||||
# build_style=slashpackage
|
||||
# wrksrc=<category>
|
||||
# build_wrksrc=${pkgname}-${version}
|
||||
# distfiles=<download link>
|
||||
#
|
||||
|
@ -15,7 +14,6 @@
|
|||
# pkgname=daemontools
|
||||
# version=0.76
|
||||
# revision=1
|
||||
# wrksrc=admin
|
||||
# build_wrksrc=${pkgname}-${version}
|
||||
# build_style=slashpackage
|
||||
# short_desc="A collection of tools for managing UNIX services"
|
||||
|
|
|
@ -655,11 +655,7 @@ setup_pkg() {
|
|||
fi
|
||||
|
||||
# Setup some specific package vars.
|
||||
if [ -z "$wrksrc" ]; then
|
||||
wrksrc="$XBPS_BUILDDIR/${sourcepkg}-${version}"
|
||||
else
|
||||
wrksrc="$XBPS_BUILDDIR/$wrksrc"
|
||||
fi
|
||||
|
||||
if [ "$cross" -a "$nocross" ]; then
|
||||
report_broken \
|
||||
|
|
Loading…
Reference in New Issue