aboutsummaryrefslogtreecommitdiffstats
path: root/community/picom/APKBUILD
blob: 2c7ec81a629ad35e0f2df3f0e817d2b424e234f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=picom
pkgver=7.5
pkgrel=0
pkgdesc="X Compositor (a fork of compton)"
url="https://github.com/yshui/picom"
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 uthash-dev"
subpackages="$pkgname-doc"
source="picom-$pkgver.tar.gz::https://github.com/yshui/picom/archive/v$pkgver.tar.gz"
options="!check" # No tests defined in tests/ directory

replaces="compton" # Backwards compatibility
provides="compton=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	meson --prefix=/usr --buildtype=release -Dbuild_docs=true build
	ninja -v -C build
}

package() {
	DESTDIR="$pkgdir" ninja -C build install

	mkdir -p "$pkgdir/usr/share/doc/picom"
	install -m644 README* "$pkgdir/usr/share/doc/picom/"
	install -D -m644 "picom.sample.conf" "$pkgdir/etc/xdg/picom.conf.example"
}

sha512sums="6535e5eab1a243bbee62448bc48830b7ea3566f94b2c45d9ca76fd8b8056e1f00e55f0e4b58110364d2c4f56652cc005622d644c1db1db41d2811ecc19e6d44a  picom-7.5.tar.gz"