[arch-commits] Commit in python-entrypoints/trunk (PKGBUILD)
Kyle Keen
kkeen at archlinux.org
Wed Mar 8 03:28:30 UTC 2017
Date: Wednesday, March 8, 2017 @ 03:28:29
Author: kkeen
Revision: 215273
upgpkg: python-entrypoints 0.2.2-3 FS#52477
Modified:
python-entrypoints/trunk/PKGBUILD
----------+
PKGBUILD | 23 ++++++++++++++++++-----
1 file changed, 18 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-03-08 00:36:08 UTC (rev 215272)
+++ PKGBUILD 2017-03-08 03:28:29 UTC (rev 215273)
@@ -2,20 +2,33 @@
# Maintainer: Kyle Keen <keenerd at gmail.com>
pkgname=python-entrypoints
+_name=entrypoints
pkgver=0.2.2
-pkgrel=2
+pkgrel=3
pkgdesc="https://pypi.python.org/pypi/entrypoints"
arch=('any')
url="https://github.com/takluyver/entrypoints"
license=('MIT')
depends=('python')
-source=("https://github.com/takluyver/entrypoints/archive/$pkgver.tar.gz")
-md5sums=('7dae980f7c6affd777dc60a51c8d0b0b')
+#makedepends=('python-pip')
+# both sources because the WHL doesn't come with a license
+source=("$pkgname-$pkgver.tgz::https://github.com/takluyver/entrypoints/archive/$pkgver.tar.gz"
+ "https://files.pythonhosted.org/packages/py2.py3/e/$_name/$_name-$pkgver-py2.py3-none-any.whl")
+md5sums=('7dae980f7c6affd777dc60a51c8d0b0b'
+ '73bd7ce92c19b25dc5a20aff41be996a')
package() {
+ cd "$srcdir"
+ # pip actually doesn't do much and is remarkably slow
+ #pip install --compile --no-deps --ignore-installed --root="$pkgdir" *.whl
+ install -Dm644 entrypoints.py "$pkgdir/usr/lib/python3.6/site-packages/entrypoints.py"
+ _dist="entrypoints-$pkgver.dist-info"
+ cd $_dist
+ for _i in ./*; do
+ install -Dm644 $_i "$pkgdir/usr/lib/python3.6/site-packages/$_dist/$_i"
+ done
+
cd "$srcdir/entrypoints-$pkgver"
- # no setup/makefile provided
- install -Dm644 entrypoints.py "$pkgdir/usr/lib/python3.6/site-packages/entrypoints.py"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
More information about the arch-commits
mailing list