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

Felix Yan felixonmars at archlinux.org
Thu Feb 23 05:39:46 UTC 2017


    Date: Thursday, February 23, 2017 @ 05:39:45
  Author: felixonmars
Revision: 213566

archrelease: copy trunk to community-any

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

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

Copied: python-kaitaistruct/repos/community-any/PKGBUILD (from rev 213565, python-kaitaistruct/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2017-02-23 05:39:45 UTC (rev 213566)
@@ -0,0 +1,40 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-kaitaistruct
+pkgname=('python-kaitaistruct' 'python2-kaitaistruct')
+pkgver=0.6
+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=("git+https://github.com/kaitai-io/kaitai_struct_python_runtime.git#tag=$pkgver")
+sha512sums=('SKIP')
+
+prepare() {
+  cp -a kaitai_struct_python_runtime{,-py2}
+}
+
+build() {
+  cd "$srcdir"/kaitai_struct_python_runtime
+  python setup.py build
+
+  cd "$srcdir"/kaitai_struct_python_runtime-py2
+  python2 setup.py build
+}
+
+package_python-kaitaistruct() {
+  depends=('python')
+
+  cd kaitai_struct_python_runtime
+  python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-kaitaistruct() {
+  depends=('python2')
+
+  cd kaitai_struct_python_runtime-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+}



More information about the arch-commits mailing list