[arch-commits] Commit in xorgproto/repos (testing-any testing-any/PKGBUILD)
Andreas Radke
andyrtr at archlinux.org
Thu Feb 25 08:29:10 UTC 2021
Date: Thursday, February 25, 2021 @ 08:29:10
Author: andyrtr
Revision: 408798
archrelease: copy trunk to testing-any
Added:
xorgproto/repos/testing-any/
xorgproto/repos/testing-any/PKGBUILD
(from rev 408797, xorgproto/trunk/PKGBUILD)
----------+
PKGBUILD | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
Copied: xorgproto/repos/testing-any/PKGBUILD (from rev 408797, xorgproto/trunk/PKGBUILD)
===================================================================
--- testing-any/PKGBUILD (rev 0)
+++ testing-any/PKGBUILD 2021-02-25 08:29:10 UTC (rev 408798)
@@ -0,0 +1,51 @@
+# Maintainer: AndyRTR <andyrtr at archlinux.org>
+
+# When releasing a xorgproto version with updated keysyms, rebuild libx11
+
+pkgname=xorgproto
+pkgver=2021.3
+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=('3965e8f7f9fbfb2ad8c315865e112e2743915e6b9669fb1ee9bdd376fe4dce0145d547c679a321763b3eaa54832c7a92ff627f36505e914d2a4c48c2246a800e'
+ '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/*.txt "${pkgdir}/usr/share/doc/${pkgname}/"
+ install -m644 "$pkgname"-$pkgver/PM_spec "${pkgdir}/usr/share/doc/${pkgname}/"
+ rm "${pkgdir}"/usr/share/doc/${pkgname}/meson_options.txt
+
+ # 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