archrelease: copy trunk to extra-x86_64
[arch-packages.git] / xorgproto / trunk / PKGBUILD
blob7e628895f9ced4f022f1a7ef61e2948597283ef2
1 # Maintainer: AndyRTR <andyrtr@archlinux.org>
3 # When releasing a xorgproto version with updated keysyms, rebuild libx11
5 pkgname=xorgproto
6 pkgver=2022.2
7 pkgrel=1
8 pkgdesc="combined X.Org X11 Protocol headers"
9 arch=('any')
10 url="https://xorg.freedesktop.org/"
11 license=('custom')
12 makedepends=('xorg-util-macros' 'meson')
13 checkdepends=('python-libevdev')
14 source=(https://xorg.freedesktop.org/archive/individual/proto/$pkgname-$pkgver.tar.xz{,.sig})
15 sha512sums=('8e6108110600d076a94cc6d0e465b2e9adfbbe8d7e6b75fae9c5262d99dc6074ab1ed561a74d6d451f00f5b7af9f507a6317be9c0770efeed9e60b64beb7a1c9'
16             'SKIP')
17 validpgpkeys=('3C2C43D9447D5938EF4551EBE23B7E70B467F0BF') # "Peter Hutterer (Who-T) <office@who-t.net>"
18 #validpgpkeys=('FD0004A26EADFE43A4C3F249C6F7AE200374452D') # "Povilas Kanapickas <povilas@radix.lt>"
20 prepare() {
21   mkdir build
24 build() {
25   arch-meson "$pkgname"-$pkgver build
26   ninja -C build
29 check() {
30   meson test -C build
33 package() {
34   DESTDIR="$pkgdir" ninja -C build install
36   # missing docs
37   install -m755 -d "${pkgdir}/usr/share/doc/${pkgname}"
38   install -m644 "$pkgname"-$pkgver/PM_spec "${pkgdir}/usr/share/doc/${pkgname}/"
40   # licenses
41   install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
42   install -m644 "$pkgname"-$pkgver/COPYING* "${pkgdir}/usr/share/licenses/${pkgname}/"
43   # remove licences of legacy stuff we don't ship anymore
44   rm -f "${pkgdir}"/usr/share/licenses/${pkgname}/COPYING-{evieproto,fontcacheproto,lg3dproto,printproto,xcalibrateproto,xf86rushproto}
46   # cleanup
47   rm -f "${pkgdir}"/usr/include/X11/extensions/apple*
48   rm -f "${pkgdir}"/usr/share/licenses/${pkgname}/COPYING-{apple,windows}wmproto
49   rm -f "${pkgdir}"/usr/share/pkgconfig/applewmproto.pc