[arch-commits] Commit in python-kaitaistruct/repos (2 files)

Felix Yan felixonmars at archlinux.org
Thu Feb 8 02:52:06 UTC 2018


    Date: Thursday, February 8, 2018 @ 02:52:05
  Author: felixonmars
Revision: 290129

archrelease: copy trunk to community-testing-any

Added:
  python-kaitaistruct/repos/community-testing-any/
  python-kaitaistruct/repos/community-testing-any/PKGBUILD
    (from rev 290128, python-kaitaistruct/trunk/PKGBUILD)

----------+
 PKGBUILD |   40 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

Copied: python-kaitaistruct/repos/community-testing-any/PKGBUILD (from rev 290128, python-kaitaistruct/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2018-02-08 02:52:05 UTC (rev 290129)
@@ -0,0 +1,40 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-kaitaistruct
+pkgname=('python-kaitaistruct' 'python2-kaitaistruct')
+pkgver=0.8
+pkgrel=1
+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")
+sha512sums=('a676a048dd96366dbc89a981dc51c1f6aeb76b9e4fc2d3ebfea527c27dc201803e4f3d8fceff96686e3964b1f3040e4ee9dd2f857a422da1998d98dc325bdbc7')
+
+prepare() {
+  cp -a kaitai_struct_python_runtime-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/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')
+
+  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