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

Thore Bödecker foxxx0 at archlinux.org
Thu Sep 21 11:35:25 UTC 2017


    Date: Thursday, September 21, 2017 @ 11:35:24
  Author: foxxx0
Revision: 259150

upgpkg: lttng-ust 2.10.0-6

also build the python packages

Modified:
  lttng-ust/trunk/PKGBUILD

----------+
 PKGBUILD |   51 +++++++++++++++++++++++++++++++++++++--------------
 1 file changed, 37 insertions(+), 14 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-09-21 10:33:13 UTC (rev 259149)
+++ PKGBUILD	2017-09-21 11:35:24 UTC (rev 259150)
@@ -2,24 +2,22 @@
 # Contributor: Philippe Proulx <pproulx at efficios.com>
 # Contributor: Manuel Mendez <mmendez534 at gmail dot com>
 
-pkgname=lttng-ust
+pkgbase='lttng-ust'
+pkgname=('lttng-ust' 'python-lttngust' 'python2-lttngust')
 pkgver=2.10.0
-pkgrel=5
-pkgdesc="LTTng user space tracing libraries for LTTng"
+pkgrel=6
 arch=('i686' 'x86_64')
 url="https://lttng.org/"
 license=('LGPL2.1' 'GPL2' 'MIT')
-makedepends=('asciidoc' 'xmlto' 'libxml2')
-depends=('liburcu>=0.7.2' 'util-linux' 'python')
-optdepends=(
-    'lttng-tools: LTTng tracing control tools'
-    'babeltrace: trace viewer'
-)
-source=("https://lttng.org/files/${pkgname}/${pkgname}-${pkgver}.tar.bz2")
-sha512sums=('a1661681d09b08ce4ca25dfad6c42c51a1a82f1647ddb9560b8b369f2ff16b7e07618554e1c81941da6f8d50cec2501611f7f3e89bbafccdfc984434f47ff397')
+makedepends=('asciidoc' 'xmlto' 'libxml2' 'python' 'python2' 'liburcu>=0.7.2' 'util-linux')
+source=(https://lttng.org/files/${pkgbase}/${pkgbase}-${pkgver}.tar.bz2{,.asc})
+sha512sums=('a1661681d09b08ce4ca25dfad6c42c51a1a82f1647ddb9560b8b369f2ff16b7e07618554e1c81941da6f8d50cec2501611f7f3e89bbafccdfc984434f47ff397'
+    'SKIP')
 
 build() {
     cd "${srcdir}/${pkgname}-${pkgver}"
+
+    # build lttng-ust
     ./configure \
         --prefix='/usr' \
         --enable-man-pages \
@@ -32,8 +30,33 @@
     make check
 }
 
-package() {
-    cd "${srcdir}/${pkgname}-${pkgver}"
+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/lttng-ust/COPYING"
+    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