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