Update package version to 2.4.125
This commit is contained in:
@@ -0,0 +1,15 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Git repository
|
||||||
|
REPO="https://git.kernel.org/pub/scm/linux/kernel/git/jberg/iw.git"
|
||||||
|
|
||||||
|
# Get tag name using 'git ls-remote'
|
||||||
|
TAG_NAME=$(git ls-remote --exit-code --refs --tags --sort='v:refname' "$REPO" | tail -1 | cut -d'/' -f3)
|
||||||
|
|
||||||
|
# Get version number from tag name
|
||||||
|
VERSION=$(echo "$TAG_NAME" | rev | cut -d'-' -f1 | rev)
|
||||||
|
|
||||||
|
# Trim 'v' character in VERSION variable
|
||||||
|
VERSION=$(echo "$VERSION" | tr -d 'v')
|
||||||
|
|
||||||
|
echo "$VERSION"
|
||||||
@@ -1,9 +1,10 @@
|
|||||||
name: libdrm
|
name: libdrm
|
||||||
description: Userspace interface to kernel DRM services
|
description: Userspace interface to kernel DRM services
|
||||||
version: 2.4.124
|
version: 2.4.125
|
||||||
url: https://dri.freedesktop.org/
|
url: https://dri.freedesktop.org/
|
||||||
license: MIT
|
license: MIT
|
||||||
architecture: any
|
architecture: any
|
||||||
depends: ["glibc","libpciaccess"]
|
depends: ["glibc","libpciaccess"]
|
||||||
make_depends: ["meson"]
|
optional_depends: ["cairo"]
|
||||||
|
make_depends: ["meson","cairo"]
|
||||||
type: source
|
type: source
|
||||||
|
|||||||
@@ -15,31 +15,24 @@ 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 build
|
meson setup --prefix=/usr \
|
||||||
cd build
|
--libdir=/usr/lib \
|
||||||
|
--buildtype=release \
|
||||||
meson setup --prefix=/usr \
|
-Dudev=true \
|
||||||
--libdir=/usr/lib \
|
-Dvalgrind=disabled \
|
||||||
--buildtype=release \
|
-Dinstall-test-programs=true \
|
||||||
-Dudev=true \
|
build
|
||||||
-Dvalgrind=disabled \
|
meson compile -C build
|
||||||
..
|
|
||||||
ninja
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# The check function is executed in the source directory
|
# The check function is executed in the source directory
|
||||||
# This function is used to run tests to verify the package has been compiled correctly
|
# This function is used to run tests to verify the package has been compiled correctly
|
||||||
check() {
|
check() {
|
||||||
cd build
|
meson test -C build --print-errorlogs
|
||||||
ninja test
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# 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 build
|
meson install -C build --destdir="$BPM_OUTPUT"
|
||||||
DESTDIR="$BPM_OUTPUT" ninja install
|
|
||||||
|
|
||||||
sed -n 3,25p < ../libsync.h > ../LICENSE
|
|
||||||
install -Dm644 ../LICENSE "$BPM_OUTPUT"/usr/share/licenses/libdrm/LICENSE
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user