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

Levente Polyak anthraxx at archlinux.org
Sat Aug 6 11:03:03 UTC 2016


    Date: Saturday, August 6, 2016 @ 11:03:02
  Author: anthraxx
Revision: 185597

upgpkg: meson 0.33.0-1

- adding signature
- enable test suite
- rename runners

Modified:
  meson/trunk/PKGBUILD

----------+
 PKGBUILD |   45 +++++++++++++++++++++++++++++----------------
 1 file changed, 29 insertions(+), 16 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-08-06 10:51:14 UTC (rev 185596)
+++ PKGBUILD	2016-08-06 11:03:02 UTC (rev 185597)
@@ -1,26 +1,39 @@
-# Maintainer: Anatol Pomozov <anatol dot pomozov at gmail>
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Anatol Pomozov <anatol dot pomozov at gmail>
 
 pkgname=meson
-pkgver=0.32.0
+pkgver=0.33.0
 pkgrel=1
-pkgdesc='SCons-like build system that use python as a front-end language and Ninja as a building backend'
+pkgdesc='High productivity build system'
 url='http://mesonbuild.com/'
-arch=(any)
-depends=(python ninja)
-optdepends=('python-pyqt5: GUI support')
-#checkdepends=(gcc-objc gnustep-make vala rust gcc-fortran mono boost qt5-base) #gtest or googletest
-license=(Apache)
-source=(https://pypi.io/packages/source/m/meson/meson-$pkgver.tar.gz)
-sha1sums=('9db0eb1f550d388e7a845cc20078d0ce79319a22')
+arch=('any')
+license=('Apache')
+depends=('python' 'ninja')
+makedepends=('python-setuptools')
+checkdepends=('gcc-objc' 'vala' 'rust' 'gcc-fortran' 'mono' 'boost' 'qt5-base' 'git' 'gnustep-base' 'cython'
+              'gtest' 'gmock' 'protobuf' 'wxgtk' 'python-gobject' 'gobject-introspection' 'pkgconfig')
+source=(https://github.com/mesonbuild/meson/releases/download/${pkgver}/meson-${pkgver}.tar.gz{,.asc})
+sha512sums=('07b2dc6b5620bd119c9d513706ce599c5c5f6864d8e4be42682504558c8bd39cf6f3eafc07b33d6155fe97e39cdf7c0d0ff97295761ce85d9d21aa194298df9e'
+            'SKIP')
+validpgpkeys=('95181F4EED14FDF4E41B518D3BF4693BFEEB9428') # Jussi Pakkanen <jpakkane at gmail.com>
 
+prepare() {
+  cd ${pkgname}-${pkgver}
+  sed 's|cython3|cython|g' -i 'test cases/python3/3 cython/meson.build'
+}
+
 check() {
-  cd meson-$pkgver
-#  tests require a lot of dependencies
-#  ./run_tests.py
+  cd ${pkgname}-${pkgver}
+  # for debugging set MESON_PRINT_TEST_OUTPUT
+  ./run_tests.py
 }
 
 package() {
-  cd meson-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
-  install -D -m644 COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING
+  cd ${pkgname}-${pkgver}
+  python setup.py install --root="${pkgdir}" -O1
+  for f in "${pkgdir}"/usr/bin/*.py; do
+    mv "${f}" "${f%%.py}"
+  done
 }
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list