Date: Friday, March 2, 2018 @ 18:17:41
  Author: felixonmars
Revision: 301472

archrelease: copy trunk to community-any

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

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2018-03-02 18:17:16 UTC (rev 301471)
+++ PKGBUILD    2018-03-02 18:17:41 UTC (rev 301472)
@@ -1,41 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan <felixonm...@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
-}

Copied: python-harparser/repos/community-any/PKGBUILD (from rev 301471, 
python-harparser/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2018-03-02 18:17:41 UTC (rev 301472)
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer: Felix Yan <felixonm...@archlinux.org>
+
+pkgbase=python-harparser
+pkgname=('python-harparser' 'python2-harparser')
+pkgver=0.3
+_commit=f2f8b525c6045eab95ced0767322244a337ec536
+pkgrel=1
+pkgdesc="Python HAR Parser Utility"
+arch=('any')
+license=('MIT')
+url="https://github.com/JustusW/harparser";
+makedepends=('python' 'python2')
+source=("$pkgbase-$_commit.tar.gz::https://github.com/JustusW/harparser/archive/$_commit.tar.gz";)
+sha512sums=('604f998e760bd9bf7f2caef5833fbc933da9c2b9deb94b72b09d00589616e22b99f4d7fad4600bd285998c281e08529ef9cd3e76d837a568351bc380f7236b25')
+
+prepare() {
+  mv harparser-{$_commit,$pkgver}
+
+  sed -i 's/iteritems/items/' harparser-$pkgver/harparser.py
+
+  cp -a harparser-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/harparser-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/harparser-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/harparser-$pkgver
+  python -m unittest test.log
+
+  cd "$srcdir"/harparser-$pkgver-py2
+  python2 -m unittest test.log
+}
+
+package_python-harparser() {
+  depends=('python')
+
+  cd harparser-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-harparser() {
+  depends=('python2')
+
+  cd harparser-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+}

Reply via email to