aboutsummaryrefslogtreecommitdiffstats
path: root/community/compton/APKBUILD
blob: 6e8bf4ffa2f026384d636c0f2cd74f37e5736f23 (plain) (blame)
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
35
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=compton
pkgver=6.2
pkgrel=0
pkgdesc="X Compositor (a fork of xcompmgr-dana)"
url="https://github.com/yshui/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 --prefix=/usr --buildtype=release -Dbuild_docs=true 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="a0e57dcaff9a18d0ac3b24d15ccaf0f5b308cda0d1c24ab4f76c8e8f3e302983731d7bd3becaf311dd53ca77287eb820315e729b5e34fb1879cab2adad001e82  compton-6.2.tar.gz"