From 8fafe981ef4d27d0b6c169094ebf2ce6d0351573 Mon Sep 17 00:00:00 2001 From: Alexander Zhirov Date: Thu, 14 Mar 2024 18:58:28 +0300 Subject: [PATCH] added picom package --- packages/p/picom/Pkgfile | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 packages/p/picom/Pkgfile diff --git a/packages/p/picom/Pkgfile b/packages/p/picom/Pkgfile new file mode 100644 index 0000000..0512cf8 --- /dev/null +++ b/packages/p/picom/Pkgfile @@ -0,0 +1,29 @@ +# Description: A compositor for X, and a fork of xcompmgr-dana, and a fork of compton. +# URL: https://github.com/yshui/picom +# Maintainer: Alexander Zhirov +# Depends on: hicolor-icon-theme libconfig libev libxdg-basedir mesa xorg-libpixman xorg-xcb-util-image xorg-xcb-util-renderutil uthash dbus +# Optional: asciidoc + +name=picom +version=11.2 +release=1 +source=(https://github.com/yshui/picom/archive/v$version/$name-v$version.tar.gz) + +build() { + [[ -e '/usr/bin/asciidoctor' ]] && PKGMK_PICOM+=' -D with_docs=true' + + meson setup build $name-$version ${PKGMK_PICOM} \ + --prefix=/usr \ + --buildtype=plain \ + --wrap-mode nodownload \ + -D b_lto=true \ + -D b_pie=true + + meson compile -C build -j ${JOBS:-1} + DESTDIR=$PKG meson install -C build + + install -Dm644 $SRC/$name-$version/picom.sample.conf $PKG/etc/xdg/picom.conf + install -Dm644 $SRC/$name-$version/picom.sample.conf $PKG/etc/xdg/picom.conf.example + + [ -e '/usr/bin/asciidoctor' ] || install -D -m 0644 -t $PKG/usr/share/man/man1 $SRC/picom-trans.1 $SRC/picom.1 +}