contrib/picom/Pkgfile

28 lines
986 B
Plaintext

# Description: A compositor for X, and a fork of xcompmgr-dana, and a fork of compton.
# URL: https://github.com/yshui/picom
# Maintainer: Danny Rawlins, crux at romster dot me
# 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=8.2
release=2
source=(https://github.com/yshui/picom/archive/v$version/$name-v$version.tar.gz
picom.conf picom-trans.1 picom.1)
build() {
[[ -e '/usr/bin/asciidoctor' ]] && PKGMK_PICOM+=' -D with_docs=true'
meson setup build $name-$version ${PKGMK_PICOM} \
--prefix=/usr \
--buildtype=plain
meson compile -C build -j ${JOBS:-1}
DESTDIR=$PKG meson install -C build
install -Dm644 $SRC/picom.conf $PKG/etc/xdg/picom.conf
install -Dm644 $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
}