[arch-commits] Commit in distorm/trunk (PKGBUILD)
Levente Polyak
anthraxx at archlinux.org
Sun Mar 28 00:24:35 UTC 2021
Date: Sunday, March 28, 2021 @ 00:24:35
Author: anthraxx
Revision: 905855
upgpkg: distorm 3.5.2-2: remvove python2 variant
Modified:
distorm/trunk/PKGBUILD
----------+
PKGBUILD | 27 ++++++---------------------
1 file changed, 6 insertions(+), 21 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-03-28 00:20:34 UTC (rev 905854)
+++ PKGBUILD 2021-03-28 00:24:35 UTC (rev 905855)
@@ -3,31 +3,23 @@
# Contributor: Dmitry A. Ilyashevich <dmitry.ilyashevich at gmail.com>
pkgbase=distorm
-pkgname=('distorm' 'python-distorm' 'python2-distorm')
+pkgname=('distorm' 'python-distorm')
pkgver=3.5.2
-pkgrel=1
+pkgrel=2
pkgdesc='Powerful disassembler library for x86/AMD64'
url='https://github.com/gdabah/distorm'
arch=('x86_64')
license=('BSD')
-makedepends=('python' 'python-setuptools' 'python2' 'python2-setuptools' 'glibc')
+makedepends=('python' 'python-setuptools' 'glibc')
options=('staticlibs')
source=(https://github.com/gdabah/distorm/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz)
sha512sums=('9c9c5d5e27711afe6c0e4fd4dcb5f8975a0ac8d139b9997f086deaecc888117ca696eb88d05085c827828bac02d949b4eda6ebe38ff85efb8b19c9fdae35abb0')
b2sums=('973779b81e8128b38b666d70e164e233f2ae22d796269626021398c76eebcea42c8de75036221cfc53a6a2f027c8677b95a1107cec5b2d3bfcfa9b2a667f8016')
-prepare() {
- cp -ra ${pkgbase}-${pkgver}{,-py2}
-}
-
build() {
- (cd ${pkgbase}-${pkgver}
- make -C make/linux CFLAGS="${CFLAGS} ${CPPFLAGS} -fPIC"
- python setup.py build
- )
- (cd ${pkgbase}-${pkgver}-py2
- python2 setup.py build
- )
+ cd ${pkgbase}-${pkgver}
+ make -C make/linux CFLAGS="${CFLAGS} ${CPPFLAGS} -fPIC"
+ python setup.py build
}
package_distorm() {
@@ -47,11 +39,4 @@
install -Dm 644 COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
-package_python2-distorm() {
- depends=('python2')
- cd ${pkgbase}-${pkgver}-py2
- python2 setup.py install --root="${pkgdir}" -O1 --skip-build
- install -Dm 644 COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}"
-}
-
# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list