Update package version to 12.5

This commit is contained in:
2025-09-17 14:38:07 +03:00
parent 603d198dac
commit 4b15f28b7b
3 changed files with 18 additions and 16 deletions
+12
View File
@@ -0,0 +1,12 @@
#!/bin/bash
# Github repository
REPO="yshui/picom"
# Get tag name using Github Rest API
TAG_NAME=$(curl -s -L -H "X-GitHub-Api-Version: 2022-11-28" -H "Authorization: token ${GITHUB_API_TOKEN}" https://api.github.com/repos/"$REPO"/releases/latest | jq -r '.tag_name')
# Trim 'v' character in TAG_NAME variable
VERSION=$(echo "$TAG_NAME" | tr -d 'v')
echo "$VERSION"
+2 -2
View File
@@ -1,10 +1,10 @@
name: picom name: picom
description: A lightweight compositor for X11 with animation support description: A lightweight compositor for X11 with animation support
version: 12 version: 12.5
url: https://github.com/yshui/picom url: https://github.com/yshui/picom
license: MPL2 and MIT license: MPL2 and MIT
architecture: any architecture: any
depends: ["hicolor-icon-theme","libconfig","dbus","libepoxy","libev","libglvnd","pcre2","pixman","xcb-util-image","xcb-util-renderutil"] depends: ["hicolor-icon-theme","libconfig","dbus","libepoxy","libev","libglvnd","pcre2","pixman","xcb-util-image","xcb-util-renderutil"]
optional_depends: ["python3","xorg-xprop","xorg-xwininfo"] optional_depends: ["python3","xorg-xprop","xorg-xwininfo"]
make_depends: ["mesa","meson","uthash"] make_depends: ["asciidoctor","mesa","meson","uthash"]
type: source type: source
+4 -14
View File
@@ -15,28 +15,18 @@ 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 --libdir=/usr/lib --buildtype=release -Dopengl=true -Dwith_docs=true build
cd build meson compile -C build
meson setup --prefix=/usr --libdir=/usr/lib --buildtype=release -Dopengl=true ..
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 build
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
# Install default configuraiton # Install default configuraiton
install -Dm644 "$BPM_SOURCE"/picom.sample.conf "$BPM_OUTPUT"/etc/xdg/picom.conf install -Dm644 "$BPM_SOURCE"/picom.sample.conf "$BPM_OUTPUT"/etc/xdg/picom.conf
# Install package license
install -Dm644 "$BPM_SOURCE"/LICENSES/* -t "$BPM_OUTPUT"/usr/share/licenses/picom/ install -Dm644 "$BPM_SOURCE"/LICENSES/* -t "$BPM_OUTPUT"/usr/share/licenses/picom/
} }