[arch-commits] Commit in python-ptrace/trunk (PKGBUILD)
Antonio Rojas
arojas at archlinux.org
Sat Nov 9 21:29:00 UTC 2019
Date: Saturday, November 9, 2019 @ 21:28:59
Author: arojas
Revision: 524900
Drop python2
Modified:
python-ptrace/trunk/PKGBUILD
----------+
PKGBUILD | 35 ++++-------------------------------
1 file changed, 4 insertions(+), 31 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-11-09 21:14:51 UTC (rev 524899)
+++ PKGBUILD 2019-11-09 21:28:59 UTC (rev 524900)
@@ -2,8 +2,7 @@
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
# Contributor: Sebastien Binet <binet at lblbox>
-pkgbase=python-ptrace
-pkgname=('python-ptrace' 'python2-ptrace')
+pkgname=python-ptrace
pkgver=0.9.4
pkgrel=2
pkgdesc='Python binding of ptrace library to trace processes and syscalls'
@@ -10,25 +9,16 @@
url='https://github.com/haypo/python-ptrace'
arch=('any')
license=('GPL2')
-makedepends=('python' 'python-sphinx'
- 'python2' 'python2-sphinx')
+depends=('python')
+makedepends=('python-sphinx')
source=(${pkgname}-${pkgver}.tar.gz::https://github.com/haypo/python-ptrace/archive/${pkgver}.tar.gz)
sha512sums=('dd300fb3f2e3bbca67e585601788a0b83130c96697e8820b02f19934c45e294bc2da2e22f08ad325c34795184a956ae6a42cbe83c976fe5e0d65b9386da82b57')
-prepare(){
- cp -a ${pkgbase}-${pkgver}{,-py2}
-}
-
build() {
msg "Building python..."
cd "${srcdir}/${pkgbase}-${pkgver}"
python setup.py build
make -j1 -C doc man text SPHINXBUILD=sphinx-build
-
- msg "Building python2..."
- cd "${srcdir}/${pkgbase}-${pkgver}-py2"
- python2 setup.py build
- make -j1 -C doc man text SPHINXBUILD=sphinx-build2
}
check() {
@@ -35,14 +25,9 @@
msg "Checking python..."
cd "${srcdir}/${pkgbase}-${pkgver}"
python runtests.py
-
- msg "Checking python2..."
- cd "${srcdir}/${pkgbase}-${pkgver}-py2"
- python2 runtests.py
}
-package_python-ptrace() {
- depends=('python')
+package() {
cd "${srcdir}/${pkgbase}-${pkgver}"
python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build
install -Dm 644 doc/build/text/*.txt -t "${pkgdir}/usr/share/doc/${pkgname}"
@@ -50,16 +35,4 @@
install -Dm 644 doc/build/man/${pkgbase}.1 "${pkgdir}/usr/share/man/man1/${pkgname}.1"
}
-package_python2-ptrace() {
- depends=('python2')
- cd "${srcdir}/${pkgbase}-${pkgver}-py2"
- python2 setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build
- install -Dm 644 doc/build/text/*.txt -t "${pkgdir}/usr/share/doc/${pkgname}"
- cp -a examples "${pkgdir}/usr/share/doc/${pkgname}"
- install -Dm 644 doc/build/man/${pkgbase}.1 "${pkgdir}/usr/share/man/man1/${pkgname}.1"
- # Rename gdb and strace scripts to avoid names conflict
- mv "${pkgdir}/usr/bin/gdb.py" "${pkgdir}/usr/bin/gdb2.py"
- mv "${pkgdir}/usr/bin/strace.py" "${pkgdir}/usr/bin/strace2.py"
-}
-
# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list