[arch-commits] Commit in python-kaitaistruct/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Fri May 24 04:36:13 UTC 2019


    Date: Friday, May 24, 2019 @ 04:36:12
  Author: felixonmars
Revision: 469506

upgpkg: python-kaitaistruct 0.8-3

remove python2 sibling

Modified:
  python-kaitaistruct/trunk/PKGBUILD

----------+
 PKGBUILD |   30 +++++++-----------------------
 1 file changed, 7 insertions(+), 23 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-05-24 04:35:59 UTC (rev 469505)
+++ PKGBUILD	2019-05-24 04:36:12 UTC (rev 469506)
@@ -1,39 +1,23 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
-pkgbase=python-kaitaistruct
-pkgname=('python-kaitaistruct' 'python2-kaitaistruct')
+pkgname=python-kaitaistruct
 pkgver=0.8
-pkgrel=2
+pkgrel=3
 pkgdesc="Kaitai Struct declarative parser generator for binary data: runtime library for Python"
 arch=('any')
 license=('MIT')
 url="http://kaitai.io"
-makedepends=('python-setuptools' 'python2-setuptools' 'git')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/kaitai-io/kaitai_struct_python_runtime/archive/$pkgver.tar.gz")
+depends=('python')
+makedepends=('python-setuptools')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/kaitai-io/kaitai_struct_python_runtime/archive/$pkgver.tar.gz")
 sha512sums=('a676a048dd96366dbc89a981dc51c1f6aeb76b9e4fc2d3ebfea527c27dc201803e4f3d8fceff96686e3964b1f3040e4ee9dd2f857a422da1998d98dc325bdbc7')
 
-prepare() {
-  cp -a kaitai_struct_python_runtime-$pkgver{,-py2}
-}
-
 build() {
-  cd "$srcdir"/kaitai_struct_python_runtime-$pkgver
+  cd kaitai_struct_python_runtime-$pkgver
   python setup.py build
-
-  cd "$srcdir"/kaitai_struct_python_runtime-$pkgver-py2
-  python2 setup.py build
 }
 
-package_python-kaitaistruct() {
-  depends=('python')
-
+package() {
   cd kaitai_struct_python_runtime-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
 }
-
-package_python2-kaitaistruct() {
-  depends=('python2')
-
-  cd kaitai_struct_python_runtime-$pkgver-py2
-  python2 setup.py install --root="$pkgdir" --optimize=1
-}



More information about the arch-commits mailing list