[arch-commits] Commit in python-daiquiri/repos (community-any community-any/PKGBUILD)

Felix Yan felixonmars at archlinux.org
Fri Jun 9 14:42:30 UTC 2017


    Date: Friday, June 9, 2017 @ 14:42:29
  Author: felixonmars
Revision: 235546

archrelease: copy trunk to community-any

Added:
  python-daiquiri/repos/community-any/
  python-daiquiri/repos/community-any/PKGBUILD
    (from rev 235545, python-daiquiri/trunk/PKGBUILD)

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

Copied: python-daiquiri/repos/community-any/PKGBUILD (from rev 235545, python-daiquiri/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2017-06-09 14:42:29 UTC (rev 235546)
@@ -0,0 +1,56 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-daiquiri
+pkgname=('python-daiquiri' 'python2-daiquiri')
+pkgver=0.1.0
+pkgrel=1
+pkgdesc='Library to configure Python logging easily'
+arch=('any')
+license=('Apache')
+url='https://github.com/jd/daiquiri'
+makedepends=('python-pbr' 'python2-pbr')
+checkdepends=('python-testrepository' 'python2-testrepository' 'python-testtools'
+              'python2-testtools' 'python-json-logger' 'python2-json-logger')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/jd/daiquiri/archive/$pkgver.tar.gz")
+sha512sums=('ec9490f67b2711e00fb61d9d5c6d9ef22b4c1150417348d16ca389738736567c6ed95c210d163cd47842a4d5ff1faae1740d2ee2402b1345a9003ae295f8fa61')
+
+prepare() {
+  cp -a daiquiri-$pkgver{,-py2}
+
+  export PBR_VERSION=$pkgver
+}
+
+build() {
+  cd "$srcdir"/daiquiri-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/daiquiri-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/daiquiri-$pkgver
+  python setup.py testr
+
+  cd "$srcdir"/daiquiri-$pkgver-py2
+  python2 setup.py testr
+}
+
+package_python-daiquiri() {
+  depends=('python')
+  optdepends=('python-json-logger: For JSON support')
+
+  cd daiquiri-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-daiquiri() {
+  depends=('python2')
+  optdepends=('python2-json-logger: For JSON support')
+
+  cd daiquiri-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list