aboutsummaryrefslogtreecommitdiffstats
path: root/main/xorgproto/APKBUILD
blob: 9beb498f0336b0a469d8755b168b0a3a385fa3a9 (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Contributor: prspkt <prspkt@protonmail.com>
# Maintainer: prspkt <prspkt@protonmail.com>
pkgname=xorgproto
pkgver=2020.1
pkgrel=0
pkgdesc="Combined X.Org X11 protocol headers"
url="https://www.x.org"
arch="noarch"
license="BSD-2-Clause AND MIT AND X11"
makedepends="meson util-macros"
replaces="bigreqsproto compositeproto damageproto dri2proto dri3proto fixesproto
	fontsproto glproto inputproto kbproto presentproto printproto randrproto
	recordproto renderproto resourceproto scrnsaverproto videoproto xcmiscproto
	xextproto xf86bigfontproto xf86dgaproto xf86driproto xf86miscproto
	xf86vidmodeproto xineramaproto xproto
	"
provides="bigreqsproto=$pkgver-r$pkgrel
	compositeproto=$pkgver-r$pkgrel
	damageproto=$pkgver-r$pkgrel
	dri2proto=$pkgver-r$pkgrel
	dri3proto=$pkgver-r$pkgrel
	fixesproto=$pkgver-r$pkgrel
	fontsproto=$pkgver-r$pkgrel
	glproto=$pkgver-r$pkgrel
	inputproto=$pkgver-r$pkgrel
	kbproto=$pkgver-r$pkgrel
	presentproto=$pkgver-r$pkgrel
	printproto=$pkgver-r$pkgrel
	randrproto=$pkgver-r$pkgrel
	recordproto=$pkgver-r$pkgrel
	renderproto=$pkgver-r$pkgrel
	resourceproto=$pkgver-r$pkgrel
	scrnsaverproto=$pkgver-r$pkgrel
	videoproto=$pkgver-r$pkgrel
	xcmiscproto=$pkgver-r$pkgrel
	xextproto=$pkgver-r$pkgrel
	xf86bigfontproto=$pkgver-r$pkgrel
	xf86dgaproto=$pkgver-r$pkgrel
	xf86driproto=$pkgver-r$pkgrel
	xf86miscproto=$pkgver-r$pkgrel
	xf86vidmodeproto=$pkgver-r$pkgrel
	xineramaproto=$pkgver-r$pkgrel
	xproto=$pkgver-r$pkgrel
	"
source="https://xorg.freedesktop.org/archive/individual/proto/xorgproto-$pkgver.tar.bz2"

build() {
	abuild-meson \
		--datadir=/usr/lib \
		-Dlegacy=true \
		. output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output

	# cleanup
	rm -f "$pkgdir"/usr/include/X11/extensions/apple*
	rm -f "$pkgdir"/usr/include/X11/extensions/windows*
	rm -f "$pkgdir"/usr/lib/pkgconfig/apple*
	rm -f "$pkgdir"/usr/lib/pkgconfig/windows*
	rm -f "$pkgdir"/usr/include/X11/extensions/vldXvMC.h # libxvmc-dev >= 1.0.12-r0
	rm -f "$pkgdir"/usr/include/X11/extensions/XKBgeom.h # libx11-dev >= 1.6.9-r0
}

sha512sums="2d10533e54987f293e1c8578aa742c38cf2fac8551db1d317cf5ee4a6a9600eced50f59c57c38b35dd210fe02d350294c967512f04cb9876d6c0c1f7e89cb199  xorgproto-2020.1.tar.bz2"