Update package version to 4.1

This commit is contained in:
2025-09-13 11:57:25 +03:00
parent cb8197916f
commit df54a00dd5
2 changed files with 11 additions and 9 deletions
+1 -2
View File
@@ -1,7 +1,6 @@
name: x265 name: x265
description: Free software library and application for encoding video streams into the H.265/MPEG-H HEVC compression format description: Free software library and application for encoding video streams into the H.265/MPEG-H HEVC compression format
version: 4.0 version: 4.1
revision: 2
url: https://www.videolan.org/developers/x265.html url: https://www.videolan.org/developers/x265.html
license: GPL license: GPL
architecture: any architecture: any
+10 -7
View File
@@ -10,24 +10,27 @@ FILENAME="${DOWNLOAD##*/}"
prepare() { prepare() {
wget "$DOWNLOAD" wget "$DOWNLOAD"
tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE" tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE"
cd "$BPM_SOURCE"
# Fix Cmake 4.0+ issue
sed -r -i '/cmake_policy.*(0025|0054)/d' source/CMakeLists.txt
} }
# The build function is executed in the source directory # The build function is executed in the source directory
# This function is used to compile the source code # This function is used to compile the source code
build() { build() {
mkdir x265-build cmake -B x265-build -DCMAKE_INSTALL_PREFIX=/usr -DGIT_ARCHETYPE=1 -DCMAKE_POLICY_VERSION_MINIMUM=3.5 -Wno-dev source
cd x265-build cmake --build x265-build
cmake -DCMAKE_INSTALL_PREFIX=/usr -DGIT_ARCHETYPE=1 -Wno-dev ../source
make
} }
# The package function is executed in the source directory # The package function is executed in the source directory
# This function is used to move the compiled files into the output directory # This function is used to move the compiled files into the output directory
package() { package() {
cd x265-build DESTDIR="$BPM_OUTPUT" cmake --install x265-build
make DESTDIR="$BPM_OUTPUT" install
# Remove static library
rm -v "$BPM_OUTPUT"/usr/lib/libx265.a rm -v "$BPM_OUTPUT"/usr/lib/libx265.a
# Install package license
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/x265/COPYING install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/x265/COPYING
} }