added picom package

This commit is contained in:
Alexander Zhirov 2024-03-14 18:58:28 +03:00
parent 642ebb5ec1
commit 8fafe981ef
1 changed files with 29 additions and 0 deletions

29
packages/p/picom/Pkgfile Normal file
View File

@ -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
}