[arch-commits] Commit in python-requests-ftp/repos/community-any (PKGBUILD PKGBUILD)
Andrzej Giniewicz
aginiewicz at archlinux.org
Thu Mar 14 08:49:09 UTC 2019
Date: Thursday, March 14, 2019 @ 08:49:08
Author: aginiewicz
Revision: 440962
archrelease: copy trunk to community-any
Added:
python-requests-ftp/repos/community-any/PKGBUILD
(from rev 440961, python-requests-ftp/trunk/PKGBUILD)
Deleted:
python-requests-ftp/repos/community-any/PKGBUILD
----------+
PKGBUILD | 81 +++++++++++++++++++------------------------------------------
1 file changed, 26 insertions(+), 55 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2019-03-14 08:49:04 UTC (rev 440961)
+++ PKGBUILD 2019-03-14 08:49:08 UTC (rev 440962)
@@ -1,55 +0,0 @@
-# $Id$
-# Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
-
-pkgbase=python-requests-ftp
-pkgname=('python2-requests-ftp' 'python-requests-ftp')
-pkgver=0.3.1
-pkgrel=2
-pkgdesc="FTP transport adapter for Requests"
-arch=('any')
-url="https://github.com/Lukasa/requests-ftp"
-license=('Apache')
-makedepends=('python-setuptools' 'python-requests'
- 'python2-setuptools' 'python2-requests')
-source=("https://github.com/Lukasa/requests-ftp/archive/v${pkgver}.tar.gz")
-md5sums=('7466462ca84dc69cd602873f5808d32a')
-
-prepare() {
- cd "$srcdir"
- cp -a requests-ftp-${pkgver} requests-ftp-py2-${pkgver}
- cd requests-ftp-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-ftp-py2-${pkgver}
- python2 setup.py build_ext --inplace
- python2 setup.py build
-
- msg "Building Python3"
- cd "$srcdir"/requests-ftp-${pkgver}
- python setup.py build_ext --inplace
- python setup.py build
-}
-
-package_python2-requests-ftp() {
- depends=('python2-requests')
-
- cd "$srcdir"/requests-ftp-py2-${pkgver}
-
- python2 setup.py install --skip-build --root="$pkgdir" --optimize=1
-}
-
-package_python-requests-ftp() {
- depends=('python-requests')
-
- cd "$srcdir"/requests-ftp-${pkgver}
-
- python setup.py install --skip-build --root="$pkgdir" --optimize=1
-}
-
Copied: python-requests-ftp/repos/community-any/PKGBUILD (from rev 440961, python-requests-ftp/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2019-03-14 08:49:08 UTC (rev 440962)
@@ -0,0 +1,26 @@
+# Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
+
+pkgname='python-requests-ftp'
+pkgver=0.3.1
+pkgrel=3
+pkgdesc="FTP transport adapter for Requests"
+arch=('any')
+url="https://github.com/Lukasa/requests-ftp"
+license=('Apache')
+depends=('python-requests')
+makedepends=('python-setuptools')
+source=("https://github.com/Lukasa/requests-ftp/archive/v${pkgver}.tar.gz")
+sha256sums=('9e63cf0f21d306931e205363fb5021f9553c8fcc0197bac07f0882a56d8e7251')
+
+build() {
+ cd "$srcdir"/requests-ftp-${pkgver}
+
+ python setup.py build_ext --inplace
+ python setup.py build
+}
+
+package() {
+ cd "$srcdir"/requests-ftp-${pkgver}
+
+ python setup.py install --skip-build --root="$pkgdir" --optimize=1
+}
More information about the arch-commits
mailing list