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

Thore Bödecker foxxx0 at archlinux.org
Mon May 6 08:38:10 UTC 2019


    Date: Monday, May 6, 2019 @ 08:38:10
  Author: foxxx0
Revision: 460500

upgpkg: lttng-ust 2.10.3-2

split out python2 package

Modified:
  lttng-ust/trunk/PKGBUILD

----------+
 PKGBUILD |   28 ++++++++--------------------
 1 file changed, 8 insertions(+), 20 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-05-06 07:49:28 UTC (rev 460499)
+++ PKGBUILD	2019-05-06 08:38:10 UTC (rev 460500)
@@ -3,13 +3,13 @@
 # Contributor: Manuel Mendez <mmendez534 at gmail dot com>
 
 pkgbase='lttng-ust'
-pkgname=('lttng-ust' 'python-lttngust' 'python2-lttngust')
+pkgname=('lttng-ust' 'python-lttngust')
 pkgver=2.10.3
-pkgrel=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')
+makedepends=('asciidoc' 'xmlto' 'libxml2' 'python' 'liburcu>=0.7.2' 'util-linux')
 source=("https://lttng.org/files/${pkgbase}/${pkgbase}-${pkgver}.tar.bz2"{,.asc})
 sha512sums=('6f646de3a12dbad096014f3069c3e702fb54b824b78770e777f6f877c76ffc48fae863b10c432bff1bba29caafdb5b76cb2b9cb88eb7340d5121300d2c0ff65d'
             'SKIP')
@@ -19,7 +19,7 @@
     cd "${srcdir}/${pkgname}-${pkgver}"
 
     # build lttng-ust
-    ./configure \
+    PYTHON="/usr/bin/python" ./configure \
         --prefix='/usr' \
         --enable-man-pages
     make
@@ -39,24 +39,12 @@
     install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
 }
 
-_python_package() {
-    # build with $1 python interpreter
+package_python-lttngust() {
+    pkgdesc='LTTng-UST Python Bindings'
+    depends=('lttng-ust' 'python')
     cd "${srcdir}/${pkgbase}-${pkgver}/python-lttngust"
-    make DESTDIR="${pkgdir}" PYTHON="/usr/bin/${1}" install
+    make DESTDIR="${pkgdir}" PYTHON="/usr/bin/python" 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