[arch-commits] Commit in xorgproto/repos (testing-any testing-any/PKGBUILD)
Andreas Radke
andyrtr at archlinux.org
Wed Apr 15 05:21:50 UTC 2020
Date: Wednesday, April 15, 2020 @ 05:21:47
Author: andyrtr
Revision: 380343
archrelease: copy trunk to testing-any
Added:
xorgproto/repos/testing-any/
xorgproto/repos/testing-any/PKGBUILD
(from rev 380342, xorgproto/trunk/PKGBUILD)
----------+
PKGBUILD | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 54 insertions(+)
Copied: xorgproto/repos/testing-any/PKGBUILD (from rev 380342, xorgproto/trunk/PKGBUILD)
===================================================================
--- testing-any/PKGBUILD (rev 0)
+++ testing-any/PKGBUILD 2020-04-15 05:21:47 UTC (rev 380343)
@@ -0,0 +1,54 @@
+# Maintainer: AndyRTR <andyrtr at archlinux.org>
+
+# When releasing a xorgproto version with updated keysyms, rebuild libx11
+
+pkgname=xorgproto
+pkgver=2020.1
+pkgrel=1
+pkgdesc="combined X.Org X11 Protocol headers"
+arch=('any')
+url="https://xorg.freedesktop.org/"
+license=('custom')
+makedepends=('xorg-util-macros' 'meson')
+source=(https://xorg.freedesktop.org/archive/individual/proto/$pkgname-$pkgver.tar.bz2{,.sig})
+sha512sums=('2d10533e54987f293e1c8578aa742c38cf2fac8551db1d317cf5ee4a6a9600eced50f59c57c38b35dd210fe02d350294c967512f04cb9876d6c0c1f7e89cb199'
+ 'SKIP')
+validpgpkeys=('995ED5C8A6138EB0961F18474C09DD83CAAA50B2') # "Adam Jackson <ajax at nwnk.net>"
+validpgpkeys+=('DD38563A8A8224537D1F90E45B8A2D50A0ECD0D3') # "Adam Jackson <ajax at benzedrine.nwnk.net>"
+validpgpkeys+=('C383B778255613DFDB409D91DB221A6900000011') # "Keith Packard <keithp at keithp.com>"
+validpgpkeys=('3C2C43D9447D5938EF4551EBE23B7E70B467F0BF') # "Peter Hutterer (Who-T) <office at who-t.net>"
+validpgpkeys=('995ED5C8A6138EB0961F18474C09DD83CAAA50B2') # Adam Jackson <ajax at redhat.com>
+
+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