[arch-commits] Commit in xorgproto/repos (3 files)

Andreas Radke andyrtr at gemini.archlinux.org
Thu Aug 11 14:40:25 UTC 2022


    Date: Thursday, August 11, 2022 @ 14:40:25
  Author: andyrtr
Revision: 452564

archrelease: copy trunk to testing-any

Added:
  xorgproto/repos/testing-any/
  xorgproto/repos/testing-any/PKGBUILD
    (from rev 452563, xorgproto/trunk/PKGBUILD)
  xorgproto/repos/testing-any/keys/

----------+
 PKGBUILD |   50 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)

Copied: xorgproto/repos/testing-any/PKGBUILD (from rev 452563, xorgproto/trunk/PKGBUILD)
===================================================================
--- testing-any/PKGBUILD	                        (rev 0)
+++ testing-any/PKGBUILD	2022-08-11 14:40:25 UTC (rev 452564)
@@ -0,0 +1,50 @@
+# Maintainer: AndyRTR <andyrtr at archlinux.org>
+
+# When releasing a xorgproto version with updated keysyms, rebuild libx11
+
+pkgname=xorgproto
+pkgver=2022.2
+pkgrel=1
+pkgdesc="combined X.Org X11 Protocol headers"
+arch=('any')
+url="https://xorg.freedesktop.org/"
+license=('custom')
+makedepends=('xorg-util-macros' 'meson')
+checkdepends=('python-libevdev')
+source=(https://xorg.freedesktop.org/archive/individual/proto/$pkgname-$pkgver.tar.xz{,.sig})
+sha512sums=('8e6108110600d076a94cc6d0e465b2e9adfbbe8d7e6b75fae9c5262d99dc6074ab1ed561a74d6d451f00f5b7af9f507a6317be9c0770efeed9e60b64beb7a1c9'
+            'SKIP')
+validpgpkeys=('3C2C43D9447D5938EF4551EBE23B7E70B467F0BF') # "Peter Hutterer (Who-T) <office at who-t.net>"
+#validpgpkeys=('FD0004A26EADFE43A4C3F249C6F7AE200374452D') # "Povilas Kanapickas <povilas at radix.lt>"
+
+prepare() {
+  mkdir build
+}
+
+build() {
+  arch-meson "$pkgname"-$pkgver build
+  ninja -C build
+}
+
+check() {
+  meson test -C build
+}
+
+package() {
+  DESTDIR="$pkgdir" ninja -C build install
+
+  # missing docs
+  install -m755 -d "${pkgdir}/usr/share/doc/${pkgname}"
+  install -m644 "$pkgname"-$pkgver/PM_spec "${pkgdir}/usr/share/doc/${pkgname}/"
+
+  # licenses
+  install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -m644 "$pkgname"-$pkgver/COPYING* "${pkgdir}/usr/share/licenses/${pkgname}/"
+  # remove licences of legacy stuff we don't ship anymore
+  rm -f "${pkgdir}"/usr/share/licenses/${pkgname}/COPYING-{evieproto,fontcacheproto,lg3dproto,printproto,xcalibrateproto,xf86rushproto}
+
+  # cleanup
+  rm -f "${pkgdir}"/usr/include/X11/extensions/apple*
+  rm -f "${pkgdir}"/usr/share/licenses/${pkgname}/COPYING-{apple,windows}wmproto
+  rm -f "${pkgdir}"/usr/share/pkgconfig/applewmproto.pc
+}



More information about the arch-commits mailing list