From ad3d96f53d4e432d3dcaa31598f6e122191fca09 Mon Sep 17 00:00:00 2001 From: Cedric Girard Date: Wed, 23 Aug 2017 12:19:58 +0200 Subject: [PATCH 1/2] python2 version of first --- .SRCINFO | 14 ++++++++++++++ PKGBUILD | 24 ++++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..c90030b --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = python2-first + pkgdesc = Provides a Python function to get the first element of an iterator. + pkgver = 2.0.1 + pkgrel = 1 + url = https://github.com/hynek/first/ + arch = any + license = MIT + makedepends = python2-setuptools + depends = python2 + source = http://pypi.python.org/packages/source/f/first/first-2.0.1.tar.gz + md5sums = eb62baf10657717238f9dc674b8b681f + +pkgname = python2-first + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..2fe5425 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,24 @@ +# Maintainer: Cedric Girard +# Contributor: Christopher Arndt + +_pkgname=first +pkgname="python2-${_pkgname}" +pkgver=2.0.1 +pkgrel=1 +pkgdesc="Provides a Python function to get the first element of an iterator." +arch=('any') +url="https://github.com/hynek/first/" +license=('MIT') +depends=('python2') +makedepends=('python2-setuptools') +source=("http://pypi.python.org/packages/source/f/${_pkgname}/${_pkgname}-${pkgver}.tar.gz") +md5sums=('eb62baf10657717238f9dc674b8b681f') + +package() { + cd "$srcdir/$_pkgname-$pkgver" + python2 setup.py install --root="$pkgdir/" --optimize=1 + install -dm755 "$pkgdir/usr/share/licenses/$pkgname" + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname" +} + +# vim:set ts=2 sw=2 et: From b6e300e8e31c5afdb5617aeefb8470c72bd125cd Mon Sep 17 00:00:00 2001 From: Cedric Girard Date: Tue, 21 Nov 2017 15:47:38 +0100 Subject: [PATCH 2/2] pypi does not accept plain HTTP anymore --- .SRCINFO | 2 +- PKGBUILD | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index c90030b..9ced026 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -7,7 +7,7 @@ pkgbase = python2-first license = MIT makedepends = python2-setuptools depends = python2 - source = http://pypi.python.org/packages/source/f/first/first-2.0.1.tar.gz + source = https://pypi.python.org/packages/source/f/first/first-2.0.1.tar.gz md5sums = eb62baf10657717238f9dc674b8b681f pkgname = python2-first diff --git a/PKGBUILD b/PKGBUILD index 2fe5425..074d8e2 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -11,7 +11,7 @@ url="https://github.com/hynek/first/" license=('MIT') depends=('python2') makedepends=('python2-setuptools') -source=("http://pypi.python.org/packages/source/f/${_pkgname}/${_pkgname}-${pkgver}.tar.gz") +source=("https://pypi.python.org/packages/source/f/${_pkgname}/${_pkgname}-${pkgver}.tar.gz") md5sums=('eb62baf10657717238f9dc674b8b681f') package() {