Skip to content

Commit

Permalink
bump(x11/picom): 12.5
Browse files Browse the repository at this point in the history
* Add man pages and conf file.
* Relocate conf file path.
  • Loading branch information
termux-pacman-bot committed Nov 25, 2024
1 parent 19947f3 commit 66c0c44
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
17 changes: 14 additions & 3 deletions x11-packages/picom/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,23 @@ TERMUX_PKG_DESCRIPTION="A lightweight compositor for X11"
TERMUX_PKG_LICENSE="MIT, MPL-2.0"
TERMUX_PKG_LICENSE_FILE="COPYING, LICENSES/MIT, LICENSES/MPL-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=10.2
TERMUX_PKG_VERSION="12.5"
TERMUX_PKG_SRCURL=https://github.com/yshui/picom/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=9741577df0136d8a2be48005ca2b93edc15913528e19bceb798535ca4683341c
TERMUX_PKG_DEPENDS="dbus, libconfig, libev, libpixman, libx11, libxcb, opengl, pcre, xcb-util-image, xcb-util-renderutil"
TERMUX_PKG_SHA256=627fa5d7c590df3ba8d2c41eb35d3859f7826bd28fa49e92a0e04fb60ed77904
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_DEPENDS="dbus, libconfig, libepoxy, libev, libpixman, libx11, libxcb, opengl, pcre2, xcb-util-image, xcb-util-renderutil"
TERMUX_PKG_BUILD_DEPENDS="uthash, xorgproto"
TERMUX_PKG_CONFFILES="
etc/xdg/picom.conf
"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
-Dwith_docs=true
"

termux_step_pre_configure() {
sed -i "s/^\(host_system *= *\).*/\1'linux'/" src/meson.build
}

termux_step_post_make_install() {
install -Dm600 "${TERMUX_PKG_SRCDIR}"/picom.sample.conf "${TERMUX_PREFIX}"/etc/xdg/picom.conf
}
11 changes: 11 additions & 0 deletions x11-packages/picom/src-config.c.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- a/src/config.c
+++ b/src/config.c
@@ -53,7 +53,7 @@
size_t count = 0;

if (!xdgd) {
- xdgd = "/etc/xdg";
+ xdgd = "@TERMUX_PREFIX@/etc/xdg";
}

for (int i = 0; xdgd[i]; i++) {

0 comments on commit 66c0c44

Please sign in to comment.