# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=compton pkgver=5.1 pkgrel=0 pkgdesc="X Compositor (a fork of xcompmgr-dana)" url="https://github.com/chjj/compton" arch="all" license="MIT MPL-2.0" makedepends="libx11-dev libxcomposite-dev libxinerama-dev libxdamage-dev \ libconfig-dev pcre-dev libxrandr-dev dbus-dev libdrm-dev mesa-dev meson \ libev-dev libxdg-basedir-dev pixman-dev xcb-util-renderutil-dev \ xcb-util-image-dev asciidoc" install="" subpackages="$pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/yshui/$pkgname/archive/v$pkgver.tar.gz" options="!check" # No tests defined in tests/ directory builddir="$srcdir/$pkgname-$pkgver" build() { cd "$builddir" meson -Dvsync_drm=true --buildtype=release --prefix=/usr . build ninja -v -C build } package() { cd "$builddir" DESTDIR="$pkgdir" ninja -C build install mkdir -p "$pkgdir/usr/share/doc/compton" install -m644 README* "$pkgdir/usr/share/doc/compton/" install -D -m644 "compton.sample.conf" "$pkgdir/etc/xdg/compton.conf.example" } sha512sums="61f88019b2b4ef06e5c6a155f913b0b1c0ab7d077be5af14104596cebe0428ba6d0d98399e3c450c494945a1d4727446b2f3631989dc766439112527a9d0a888 compton-5.1.tar.gz"