From e2fbb7ebd7ddd9ef7f779aabb598d6954b623371 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Sat, 13 Sep 2025 16:02:24 +0300 Subject: [PATCH] Update source.sh script --- source.sh | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/source.sh b/source.sh index afde414..62b3dd5 100644 --- a/source.sh +++ b/source.sh @@ -15,18 +15,15 @@ prepare() { # The build function is executed in the source directory # This function is used to compile the source code build() { - mkdir build - cd build - - cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr .. - make + cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_POLICY_VERSION_MINIMUM=3.5 + cmake --build build } # The package function is executed in the source directory # This function is used to move the compiled files into the output directory package() { - cd build - make DESTDIR="$BPM_OUTPUT" install + DESTDIR="$BPM_OUTPUT" cmake --install build + # Install package license install -Dm644 "$BPM_SOURCE"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/libvdpau-va-gl/LICENSE }