[arch-commits] Commit in python-requests-file/repos/community-any (PKGBUILD PKGBUILD)
Andrzej Giniewicz
aginiewicz at archlinux.org
Wed May 31 20:08:01 UTC 2017
Date: Wednesday, May 31, 2017 @ 20:08:00
Author: aginiewicz
Revision: 231653
archrelease: copy trunk to community-any
Added:
python-requests-file/repos/community-any/PKGBUILD
(from rev 231652, python-requests-file/trunk/PKGBUILD)
Deleted:
python-requests-file/repos/community-any/PKGBUILD
----------+
PKGBUILD | 112 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 56 insertions(+), 56 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2017-05-31 20:07:51 UTC (rev 231652)
+++ PKGBUILD 2017-05-31 20:08:00 UTC (rev 231653)
@@ -1,56 +0,0 @@
-# $Id$
-# Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
-# Contributor: lilydjwg <lilydjwg at gmail.com>
-
-pkgbase=python-requests-file
-pkgname=('python2-requests-file' 'python-requests-file')
-pkgver=1.4.1
-pkgrel=2
-pkgdesc="File transport adapter for Requests"
-arch=('any')
-url="https://github.com/dashea/requests-file"
-license=('Apache')
-makedepends=('python-setuptools' 'python-requests' 'python-six'
- 'python2-setuptools' 'python2-requests' 'python2-six')
-source=("https://github.com/dashea/requests-file/archive/${pkgver}.tar.gz")
-md5sums=('026a98c8af699691b5827eaf3f23f7b7')
-
-prepare() {
- cd "$srcdir"
- cp -a requests-file-${pkgver} requests-file-py2-${pkgver}
- cd requests-file-py2-${pkgver}
-
- sed -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
- -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
- -e "s|#![ ]*/bin/env python$|#!/usr/bin/env python2|" \
- -i $(find . -name '*.py')
-}
-
-build() {
- msg "Building Python2"
- cd "$srcdir"/requests-file-py2-${pkgver}
- python2 setup.py build_ext --inplace
- python2 setup.py build
-
- msg "Building Python3"
- cd "$srcdir"/requests-file-${pkgver}
- python setup.py build_ext --inplace
- python setup.py build
-}
-
-package_python2-requests-file() {
- depends=('python2-six' 'python2-requests')
-
- cd "$srcdir"/requests-file-py2-${pkgver}
-
- python2 setup.py install --skip-build --root="$pkgdir" --optimize=1
-}
-
-package_python-requests-file() {
- depends=('python-six' 'python-requests')
-
- cd "$srcdir"/requests-file-${pkgver}
-
- python setup.py install --skip-build --root="$pkgdir" --optimize=1
-}
-
Copied: python-requests-file/repos/community-any/PKGBUILD (from rev 231652, python-requests-file/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2017-05-31 20:08:00 UTC (rev 231653)
@@ -0,0 +1,56 @@
+# $Id$
+# Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
+# Contributor: lilydjwg <lilydjwg at gmail.com>
+
+pkgbase=python-requests-file
+pkgname=('python2-requests-file' 'python-requests-file')
+pkgver=1.4.2
+pkgrel=1
+pkgdesc="File transport adapter for Requests"
+arch=('any')
+url="https://github.com/dashea/requests-file"
+license=('Apache')
+makedepends=('python-setuptools' 'python-requests' 'python-six'
+ 'python2-setuptools' 'python2-requests' 'python2-six')
+source=("https://github.com/dashea/requests-file/archive/${pkgver}.tar.gz")
+md5sums=('42320dc06b115e2a003b87c86b5c6949')
+
+prepare() {
+ cd "$srcdir"
+ cp -a requests-file-${pkgver} requests-file-py2-${pkgver}
+ cd requests-file-py2-${pkgver}
+
+ sed -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
+ -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
+ -e "s|#![ ]*/bin/env python$|#!/usr/bin/env python2|" \
+ -i $(find . -name '*.py')
+}
+
+build() {
+ msg "Building Python2"
+ cd "$srcdir"/requests-file-py2-${pkgver}
+ python2 setup.py build_ext --inplace
+ python2 setup.py build
+
+ msg "Building Python3"
+ cd "$srcdir"/requests-file-${pkgver}
+ python setup.py build_ext --inplace
+ python setup.py build
+}
+
+package_python2-requests-file() {
+ depends=('python2-six' 'python2-requests')
+
+ cd "$srcdir"/requests-file-py2-${pkgver}
+
+ python2 setup.py install --skip-build --root="$pkgdir" --optimize=1
+}
+
+package_python-requests-file() {
+ depends=('python-six' 'python-requests')
+
+ cd "$srcdir"/requests-file-${pkgver}
+
+ python setup.py install --skip-build --root="$pkgdir" --optimize=1
+}
+
More information about the arch-commits
mailing list