kiss: don't set DESTDIR in builds (#122)

https://codeberg.org/kiss-community/repo/issues/90
Co-authored-by: phoebos <ben@bvnf.space>
Reviewed-on: https://codeberg.org/kiss-community/kiss/pulls/122
Co-authored-by: phoebos <phoebos@noreply.codeberg.org>
Co-committed-by: phoebos <phoebos@noreply.codeberg.org>
This commit is contained in:
phoebos 2023-03-02 09:45:09 +00:00 committed by Pratham
parent 38b71d01b2
commit 4f739a6589
1 changed files with 3 additions and 5 deletions

8
kiss
View File

@ -1119,16 +1119,14 @@ pkg_build() {
# Give the script a modified environment. Define toolchain program # Give the script a modified environment. Define toolchain program
# environment variables assuming a generic environment by default. # environment variables assuming a generic environment by default.
# #
# Define DESTDIR and GOPATH to sane defaults as their use is mandatory # Define GOPATH to sane defaults as its use is mandatory for Go projects.
# in anything using autotools, meson, cmake, etc. Define KISS_ROOT as # Define KISS_ROOT as the sanitized value used internally by the package
# the sanitized value used internally by the package manager. This is # manager. This is safe to join with other paths.
# safe to join with other paths.
AR="${AR:-ar}" \ AR="${AR:-ar}" \
CC="${CC:-cc}" \ CC="${CC:-cc}" \
CXX="${CXX:-c++}" \ CXX="${CXX:-c++}" \
NM="${NM:-nm}" \ NM="${NM:-nm}" \
RANLIB="${RANLIB:-ranlib}" \ RANLIB="${RANLIB:-ranlib}" \
DESTDIR="$pkg_dir/$1" \
RUSTFLAGS="--remap-path-prefix=$PWD=. $RUSTFLAGS" \ RUSTFLAGS="--remap-path-prefix=$PWD=. $RUSTFLAGS" \
GOFLAGS="-trimpath -modcacherw $GOFLAGS" \ GOFLAGS="-trimpath -modcacherw $GOFLAGS" \
GOPATH="$PWD/go" \ GOPATH="$PWD/go" \