Date: Thursday, February 23, 2017 @ 05:39:26 Author: felixonmars Revision: 213565
addpkg: python-kaitaistruct 0.6-1 Added: python-kaitaistruct/ python-kaitaistruct/repos/ python-kaitaistruct/trunk/ python-kaitaistruct/trunk/PKGBUILD ----------+ PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) Added: python-kaitaistruct/trunk/PKGBUILD =================================================================== --- python-kaitaistruct/trunk/PKGBUILD (rev 0) +++ python-kaitaistruct/trunk/PKGBUILD 2017-02-23 05:39:26 UTC (rev 213565) @@ -0,0 +1,40 @@ +# $Id$ +# Maintainer: Felix Yan <[email protected]> + +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 +} Property changes on: python-kaitaistruct/trunk/PKGBUILD ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property
