Update package version to 3.13.1
This commit is contained in:
@@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Git repository
|
||||||
|
REPO="https://aomedia.googlesource.com/aom.git"
|
||||||
|
|
||||||
|
# Get tag name using 'git ls-remote'
|
||||||
|
TAG_NAME=$(git ls-remote --exit-code --refs --tags --sort='v:refname' "$REPO" | cut -d'/' -f3 | grep -v '-' | tail -1)
|
||||||
|
|
||||||
|
# Trim 'v' character in TAG_NAME variable
|
||||||
|
VERSION=$(echo "$TAG_NAME" | tr -d 'v')
|
||||||
|
|
||||||
|
echo "$VERSION"
|
||||||
@@ -1,7 +1,6 @@
|
|||||||
name: libaom
|
name: libaom
|
||||||
description: Alliance for Open Media video codec
|
description: Alliance for Open Media video codec
|
||||||
version: 3.10.0
|
version: 3.13.1
|
||||||
revision: 2
|
|
||||||
url: https://aomedia.org/
|
url: https://aomedia.org/
|
||||||
license: BSD-3-Clause
|
license: BSD-3-Clause
|
||||||
architecture: any
|
architecture: any
|
||||||
|
|||||||
@@ -15,30 +15,21 @@ prepare() {
|
|||||||
# 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 aom-build
|
cmake -B build-aom \
|
||||||
cd aom-build
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||||
|
|
||||||
cmake -DCMAKE_INSTALL_PREFIX=/usr \
|
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
-DBUILD_SHARED_LIBS=1 \
|
-DBUILD_SHARED_LIBS=1 \
|
||||||
-DENABLE_DOCS=no \
|
-DENABLE_DOCS=no \
|
||||||
-DENABLE_NASM=yes \
|
-DENABLE_NASM=yes
|
||||||
-G Ninja ..
|
cmake --build build-aom
|
||||||
ninja
|
|
||||||
}
|
|
||||||
|
|
||||||
# The check function is executed in the source directory
|
|
||||||
# This function is used to run tests to verify the package has been compiled correctly
|
|
||||||
check() {
|
|
||||||
cd aom-build
|
|
||||||
ninja runtests
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# 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 aom-build
|
DESTDIR="$BPM_OUTPUT" cmake --install build-aom
|
||||||
DESTDIR="$BPM_OUTPUT" ninja install
|
|
||||||
|
# Remove static library
|
||||||
rm -v "$BPM_OUTPUT"/usr/lib/libaom.a
|
rm -v "$BPM_OUTPUT"/usr/lib/libaom.a
|
||||||
|
|
||||||
install -Dm644 "$BPM_SOURCE"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/libaom/LICENSE
|
install -Dm644 "$BPM_SOURCE"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/libaom/LICENSE
|
||||||
|
|||||||
Reference in New Issue
Block a user