mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-28 14:39:28 +02:00
39 lines
1.1 KiB
Bash
39 lines
1.1 KiB
Bash
#!/usr/bin/env bash
|
|
|
|
set -euxo pipefail
|
|
|
|
cmake_args=(
|
|
-D CMAKE_BUILD_TYPE=Release
|
|
|
|
-D audacity_conan_allow_prebuilt_binaries=no
|
|
|
|
-D audacity_lib_preference=system # Change the libs default to 'system'
|
|
-D audacity_obey_system_dependencies=On # And force it!
|
|
|
|
-D audacity_use_pch=no
|
|
|
|
-D audacity_use_wxwidgets=local # wxWidgets 3.1 is not available
|
|
-D audacity_use_portaudio=local # System portaudio is not yet usable
|
|
|
|
-D audacity_use_sbsms=local # sbsms is only available in AUR
|
|
)
|
|
|
|
if [[ $1 == "prepare" ]]; then
|
|
tar -xzf /work_dir/audacity-sources.tar.gz
|
|
|
|
audacity/linux/packages/prepare_offline_dependencies.sh "${cmake_args[@]}"
|
|
|
|
cp audacity-offline-dependencies.tar.gz /work_dir/audacity-offline-dependencies-arch-linux.tar.gz
|
|
elif [[ $1 == "build" ]]; then
|
|
tar -xzf /work_dir/audacity-sources.tar.gz
|
|
tar -xzf /work_dir/audacity-offline-dependencies-arch-linux.tar.gz
|
|
|
|
audacity/linux/packages/build_package.sh "${cmake_args[@]}"
|
|
|
|
cp audacity-linux_x86_64.tar.gz /work_dir/audacity-arch-linux_x86_64.tar.gz
|
|
elif [[ $1 == "package" ]]; then
|
|
cp /work_dir/*.tar.gz ./
|
|
makepkg
|
|
cp *.zst /work_dir
|
|
fi
|