default.conf: reduce duplication through default.conf

By setting some environmental variables in default.conf we can reduce the
amount of duplicated code needed in APKBUILDs.
This commit is contained in:
Sertonix 2024-10-07 22:20:19 +02:00 committed by Natanael Copa
parent 75a6e8e14c
commit 18340ddd42
2 changed files with 8 additions and 2 deletions

View File

@ -10,6 +10,7 @@ export JOBS=$(nproc)
export MAKEFLAGS=-j$JOBS
export SAMUFLAGS=-j$JOBS
export CARGO_BUILD_JOBS=$JOBS
export CMAKE_BUILD_PARALLEL_LEVEL=$JOBS
export CTEST_PARALLEL_LEVEL=$JOBS
export CARGO_PROFILE_RELEASE_OPT_LEVEL="s"
@ -18,6 +19,11 @@ export CARGO_PROFILE_RELEASE_CODEGEN_UNITS=1
export CARGO_PROFILE_RELEASE_LTO="true"
export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
export CTEST_OUTPUT_ON_FAILURE=ON
export CTEST_NO_TESTS_ACTION=error
export PERL_MM_USE_DEFAULT=1
SRCDEST=/var/cache/distfiles
# The package will be stored as $REPODEST/$repo/$pkgname-$pkgver-r$pkgrel.apk

View File

@ -91,7 +91,7 @@ __EOF__
build_perl() {
cat >>APKBUILD<<__EOF__
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
perl Makefile.PL INSTALLDIRS=vendor
make
__EOF__
}
@ -133,7 +133,7 @@ __EOF__
check_cmake() {
cat >>APKBUILD<<__EOF__
ctest --test-dir build --output-on-failure
ctest --test-dir build
__EOF__
}