mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2025-01-18 05:20:52 +00:00
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:
parent
75a6e8e14c
commit
18340ddd42
@ -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__
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user