contrib/picom/Pkgfile

31 lines
1.0 KiB
Plaintext
Raw Normal View History

# Description: A compositor for X, and a fork of xcompmgr-dana, and a fork of compton.
# URL: https://github.com/yshui/picom
2023-08-13 09:27:42 +02:00
# Maintainer: unmaintained
# 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
2022-12-17 13:37:49 +01:00
version=10.2
2022-02-05 16:28:09 +01:00
release=1
source=(https://github.com/yshui/picom/archive/v$version/$name-v$version.tar.gz
2023-08-13 09:27:42 +02:00
picom.conf picom-trans.1 picom.1)
build() {
2023-08-13 09:27:42 +02:00
[[ -e '/usr/bin/asciidoctor' ]] && PKGMK_PICOM+=' -D with_docs=true'
2023-08-13 09:27:42 +02:00
meson setup build $name-$version ${PKGMK_PICOM} \
--prefix=/usr \
--buildtype=plain \
--wrap-mode nodownload \
-D b_lto=true \
-D b_pie=true
2023-08-13 09:27:42 +02:00
meson compile -C build -j ${JOBS:-1}
DESTDIR=$PKG meson install -C build
2023-08-13 09:27:42 +02:00
install -Dm644 $SRC/picom.conf $PKG/etc/xdg/picom.conf
install -Dm644 $name-$version/picom.sample.conf $PKG/etc/xdg/picom.conf.example
2023-08-13 09:27:42 +02:00
[ -e '/usr/bin/asciidoctor' ] || install -D -m 0644 -t $PKG/usr/share/man/man1 $SRC/picom-trans.1 $SRC/picom.1
}