blob: f6d314d98049100c058543806b85cf028dd9222b (
plain)
1 # Description: A compositor for X, and a fork of xcompmgr-dana, and a fork of compton.
2 # URL: https://github.com/yshui/picom
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Depends on: hicolor-icon-theme libconfig libev libxdg-basedir mesa3d xorg-libpixman xorg-xcb-util-image xorg-xcb-util-renderutil uthash dbus
5 # Optional: asciidoc
6
7 name=picom
8 version=8.2
9 release=2
10 source=(https://github.com/yshui/picom/archive/v$version/$name-v$version.tar.gz
11 picom.conf picom-trans.1 picom.1)
12
13 build() {
14 [[ -e '/usr/bin/asciidoctor' ]] && PKGMK_PICOM+=' -D with_docs=true'
15
16 meson setup build $name-$version ${PKGMK_PICOM} \
17 --prefix=/usr \
18 --buildtype=plain \
19 -D b_ndebug=true
20
21 meson compile -C build -j ${JOBS:-1}
22 DESTDIR=$PKG meson install -C build
23
24 install -Dm644 $SRC/picom.conf $PKG/etc/xdg/picom.conf
25 install -Dm644 $name-$version/picom.sample.conf $PKG/etc/xdg/picom.conf.example
26
27 [ -e '/usr/bin/asciidoctor' ] || install -D -m 0644 -t $PKG/usr/share/man/man1 $SRC/picom-trans.1 $SRC/picom.1
28 }
|