[arch-commits] Commit in xorgproto/repos (testing-any testing-any/PKGBUILD)

Andreas Radke andyrtr at archlinux.org
Fri Apr 30 05:50:23 UTC 2021


    Date: Friday, April 30, 2021 @ 05:50:23
  Author: andyrtr
Revision: 414051

archrelease: copy trunk to testing-any

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

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

Copied: xorgproto/repos/testing-any/PKGBUILD (from rev 414050, xorgproto/trunk/PKGBUILD)
===================================================================
--- testing-any/PKGBUILD	                        (rev 0)
+++ testing-any/PKGBUILD	2021-04-30 05:50:23 UTC (rev 414051)
@@ -0,0 +1,49 @@
+# Maintainer: AndyRTR <andyrtr at archlinux.org>
+
+# When releasing a xorgproto version with updated keysyms, rebuild libx11
+
+pkgname=xorgproto
+pkgver=2021.4
+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.bz2{,.sig})
+sha512sums=('0d905e5f135daf7005e23371cbdc41a62d99567e0a20784e71ead0092ffd1e7582733819f7198add1d97edcc9aa80012ae01d2be8367280d69b41d0c25349367'
+            'SKIP')
+validpgpkeys=('3C2C43D9447D5938EF4551EBE23B7E70B467F0BF') # "Peter Hutterer (Who-T) <office at who-t.net>"
+
+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