xbps-src: set wrksrc to $pkgname-$version unconditionally

This commit is contained in:
Đoàn Trần Công Danh 2021-09-19 17:55:50 +07:00 committed by Đoàn Trần Công Danh
parent af9931fd3b
commit 8c5358f792
3 changed files with 2 additions and 9 deletions

View file

@ -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
wrksrc="$XBPS_BUILDDIR/${sourcepkg}-${version}"
if [ "$cross" -a "$nocross" ]; then
report_broken \