Update package version to 12.5
This commit is contained in:
@@ -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"
|
||||
@@ -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
|
||||
|
||||
@@ -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/
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user