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

Bartłomiej Piotrowski bpiotrowski at archlinux.org
Sat Dec 24 11:20:57 UTC 2016


    Date: Saturday, December 24, 2016 @ 11:20:56
  Author: bpiotrowski
Revision: 201421

archrelease: copy trunk to community-staging-any

Added:
  python-harparser/repos/community-staging-any/
  python-harparser/repos/community-staging-any/PKGBUILD
    (from rev 201420, python-harparser/trunk/PKGBUILD)

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

Copied: python-harparser/repos/community-staging-any/PKGBUILD (from rev 201420, python-harparser/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2016-12-24 11:20:56 UTC (rev 201421)
@@ -0,0 +1,41 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-harparser
+pkgname=('python-harparser' 'python2-harparser')
+pkgver=0.2
+_commit=d50dba66ecb1913cde2babc4e844d5ef543cdca7
+pkgrel=2
+pkgdesc="Python HAR Parser Utility"
+arch=('any')
+license=('MIT')
+url="https://github.com/JustusW/harparser"
+makedepends=('python' 'python2' 'git')
+source=("git+https://github.com/JustusW/harparser.git#commit=$_commit")
+sha512sums=('SKIP')
+
+prepare() {
+  cp -a harparser{,-py2}
+}
+
+build() {
+  cd "$srcdir"/harparser
+  python setup.py build
+
+  cd "$srcdir"/harparser-py2
+  python2 setup.py build
+}
+
+package_python-harparser() {
+  depends=('python')
+
+  cd harparser
+  python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-harparser() {
+  depends=('python2')
+
+  cd harparser-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+}



More information about the arch-commits mailing list