From 4b15f28b7bdafba3338a5babe076b59175f88dbe Mon Sep 17 00:00:00 2001 From: EnumDev Date: Wed, 17 Sep 2025 14:38:07 +0300 Subject: [PATCH] Update package version to 12.5 --- check-version.sh | 12 ++++++++++++ pkg.info | 4 ++-- source.sh | 18 ++++-------------- 3 files changed, 18 insertions(+), 16 deletions(-) create mode 100644 check-version.sh diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..562f53b --- /dev/null +++ b/check-version.sh @@ -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" diff --git a/pkg.info b/pkg.info index 4228767..9b562da 100644 --- a/pkg.info +++ b/pkg.info @@ -1,10 +1,10 @@ name: picom description: A lightweight compositor for X11 with animation support -version: 12 +version: 12.5 url: https://github.com/yshui/picom license: MPL2 and MIT architecture: any depends: ["hicolor-icon-theme","libconfig","dbus","libepoxy","libev","libglvnd","pcre2","pixman","xcb-util-image","xcb-util-renderutil"] optional_depends: ["python3","xorg-xprop","xorg-xwininfo"] -make_depends: ["mesa","meson","uthash"] +make_depends: ["asciidoctor","mesa","meson","uthash"] type: source diff --git a/source.sh b/source.sh index 0eb30a0..14ad5e3 100644 --- a/source.sh +++ b/source.sh @@ -15,28 +15,18 @@ prepare() { # The build function is executed in the source directory # This function is used to compile the source code build() { - mkdir build - cd 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 + meson setup --prefix=/usr --libdir=/usr/lib --buildtype=release -Dopengl=true -Dwith_docs=true build + meson compile -C 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 - DESTDIR="$BPM_OUTPUT" ninja install + meson install -C build --destdir="$BPM_OUTPUT" # Install default configuraiton 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/ }