[arch-commits] Commit in lttng-ust/repos (2 files)

Felix Yan felixonmars at archlinux.org
Sun Jul 8 11:39:48 UTC 2018


    Date: Sunday, July 8, 2018 @ 11:39:48
  Author: felixonmars
Revision: 354753

archrelease: copy trunk to community-staging-x86_64

Added:
  lttng-ust/repos/community-staging-x86_64/
  lttng-ust/repos/community-staging-x86_64/PKGBUILD
    (from rev 354752, lttng-ust/trunk/PKGBUILD)

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

Copied: lttng-ust/repos/community-staging-x86_64/PKGBUILD (from rev 354752, lttng-ust/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-07-08 11:39:48 UTC (rev 354753)
@@ -0,0 +1,62 @@
+# Maintainer: Thore Bödecker <foxxx0 at archlinux.org>
+# Contributor: Philippe Proulx <pproulx at efficios.com>
+# Contributor: Manuel Mendez <mmendez534 at gmail dot com>
+
+pkgbase='lttng-ust'
+pkgname=('lttng-ust' 'python-lttngust' 'python2-lttngust')
+pkgver=2.10.1
+pkgrel=2
+arch=('x86_64')
+url="https://lttng.org/"
+license=('LGPL2.1' 'GPL2' 'MIT')
+makedepends=('asciidoc' 'xmlto' 'libxml2' 'python' 'python2' 'liburcu>=0.7.2' 'util-linux')
+source=(https://lttng.org/files/${pkgbase}/${pkgbase}-${pkgver}.tar.bz2{,.asc})
+sha512sums=('bd9b75ff359a8698ba4f7b6a27d9958c8bd9539fd43d8f1bc4bb40003271c9074f1bb4176d074bac290fad1636d5a3226063275006b781f3533567dea71fac96'
+            'SKIP')
+validpgpkeys=('2A0B4ED915F2D3FA45F5B16217280A9781186ACF')
+
+build() {
+    cd "${srcdir}/${pkgname}-${pkgver}"
+
+    # build lttng-ust
+    ./configure \
+        --prefix='/usr' \
+        --enable-man-pages
+    make
+}
+
+check() {
+    cd "${srcdir}/${pkgname}-${pkgver}"
+    make check
+}
+
+package_lttng-ust() {
+    pkgdesc="LTTng user space tracing libraries for LTTng"
+    depends=('liburcu>=0.7.2' 'util-linux' 'python')
+    optdepends=('babeltrace: trace viewer')
+    cd "${srcdir}/${pkgbase}-${pkgver}"
+    make DESTDIR="${pkgdir}" install
+    install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+_python_package() {
+    # build with $1 python interpreter
+    cd "${srcdir}/${pkgbase}-${pkgver}/python-lttngust"
+    make DESTDIR="${pkgdir}" PYTHON="/usr/bin/${1}" install
+
+    # add license to the respective packages
+    cd "${srcdir}/${pkgbase}-${pkgver}"
+    install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python-lttngust() {
+    pkgdesc='LTTng-UST Python Bindings'
+    depends=('lttng-ust' 'python')
+    _python_package python
+}
+
+package_python2-lttngust() {
+    pkgdesc='LTTng-UST Python2 Bindings'
+    depends=('lttng-ust' 'python2')
+    _python_package python2
+}



More information about the arch-commits mailing list