[arch-commits] Commit in meson/trunk (PKGBUILD arch-meson)

Jan Steffens heftig at archlinux.org
Thu Sep 28 13:33:14 UTC 2017


    Date: Thursday, September 28, 2017 @ 13:33:13
  Author: heftig
Revision: 306440

Add a packaging helper

Added:
  meson/trunk/arch-meson
Modified:
  meson/trunk/PKGBUILD

------------+
 PKGBUILD   |    9 +++++++--
 arch-meson |   25 +++++++++++++++++++++++++
 2 files changed, 32 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-09-28 13:06:38 UTC (rev 306439)
+++ PKGBUILD	2017-09-28 13:33:13 UTC (rev 306440)
@@ -16,9 +16,11 @@
               'itstool' 'gtk3' 'valgrind' 'java-environment>=8' 'gtk-doc' 'llvm' 'clang' 'sdl2'
               'doxygen' 'vulkan-validation-layers' 'openmpi' 'openssh' 'mercurial')
 checkdepends_x86_64=('ldc')
-source=(https://github.com/mesonbuild/meson/releases/download/${pkgver}/meson-${pkgver}.tar.gz{,.asc})
+source=(https://github.com/mesonbuild/meson/releases/download/${pkgver}/meson-${pkgver}.tar.gz{,.asc}
+        arch-meson)
 sha512sums=('f9982a19160c51c53741a65a48432896799be90c2d99941a45a14c3fcc14df3469808b75d905e1ac81221b057400913e7ae0f7d24e6865d8f1e664e1686aecb4'
-            'SKIP')
+            'SKIP'
+            '0445d5d913a3962db94c63bdc7ed2afad064aa0184f73382887300f77c9c0fb39fcd7a26c3108cbf7a6988e3ed064fd2295c0d7e6e90aae420a80773ce6399ec')
 validpgpkeys=('95181F4EED14FDF4E41B518D3BF4693BFEEB9428') # Jussi Pakkanen <jpakkane at gmail.com>
 
 build() {
@@ -41,6 +43,9 @@
   install -Dm 644 syntax-highlighting/vim/ftdetect/meson.vim -t "${pkgdir}/usr/share/vim/vimfiles/ftdetect"
   install -Dm 644 syntax-highlighting/vim/indent/meson.vim -t "${pkgdir}/usr/share/vim/vimfiles/indent"
   install -Dm 644 syntax-highlighting/vim/syntax/meson.vim -t "${pkgdir}/usr/share/vim/vimfiles/syntax"
+
+  # Arch packaging helper
+  install -D ../arch-meson -t "${pkgdir}/usr/bin"
 }
 
 # vim: ts=2 sw=2 et:

Added: arch-meson
===================================================================
--- arch-meson	                        (rev 0)
+++ arch-meson	2017-09-28 13:33:13 UTC (rev 306440)
@@ -0,0 +1,25 @@
+#!/bin/bash -ex
+# Meson wrapper for Arch Linux packaging
+
+meson setup \
+  --prefix         /usr \
+  --libdir         /usr/lib \
+  --libexecdir     /usr/lib \
+  --bindir         /usr/bin \
+  --sbindir        /usr/bin \
+  --includedir     /usr/include \
+  --datadir        /usr/share \
+  --mandir         /usr/share/man \
+  --infodir        /usr/share/info \
+  --localedir      /usr/share/locale \
+  --sysconfdir     /etc \
+  --localstatedir  /var \
+  --sharedstatedir /var/lib \
+  --buildtype      release \
+  --warnlevel      2 \
+  --wrap-mode      nofallback \
+  -D               b_lto=true \
+  "$@"
+
+# Print config
+exec meson configure



More information about the arch-commits mailing list