Skip to content
Snippets Groups Projects
Commit 18340ddd authored by Sertonix's avatar Sertonix Committed by Natanael Copa
Browse files

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.
parent 75a6e8e1
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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__
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment