[arch-commits] Commit in (4 files)

Morten Linderud foxboron at archlinux.org
Sat Oct 21 20:54:29 UTC 2017


    Date: Saturday, October 21, 2017 @ 20:54:28
  Author: foxboron
Revision: 263887

Uploaded python-shutilwhich from AUR

Added:
  python-shutilwhich/
  python-shutilwhich/repos/
  python-shutilwhich/trunk/
  python-shutilwhich/trunk/PKGBUILD

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

Added: python-shutilwhich/trunk/PKGBUILD
===================================================================
--- python-shutilwhich/trunk/PKGBUILD	                        (rev 0)
+++ python-shutilwhich/trunk/PKGBUILD	2017-10-21 20:54:28 UTC (rev 263887)
@@ -0,0 +1,40 @@
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
+# Contributor: Maikel Wever <maikelwever at gmail.com>
+
+pkgbase=python-shutilwhich
+pkgname=(python-shutilwhich python2-shutilwhich)
+pkgver=1.1.0
+pkgrel=3
+pkgdesc="Backport of shutil.which"
+url="https://github.com/mbr/shutilwhich"
+arch=('any')
+license=('PSF')
+makedepends=('python' 'python-setuptools'
+             'python2' 'python2-setuptools')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/mbr/shutilwhich/archive/${pkgver}.tar.gz")
+sha256sums=('4292a973312c58ca1935ea75d7bd378b17668ef6aacfc812d00019e0726dea44')
+
+prepare() {
+  cp -a shutilwhich-$pkgver{,-py2}
+}
+
+build(){
+  cd "$srcdir/shutilwhich-$pkgver"
+  python setup.py build
+
+  cd "$srcdir/shutilwhich-$pkgver-py2"
+  python2 setup.py build
+}
+
+package_python2-shutilwhich() {
+  depends=('python2')
+  cd "shutilwhich-$pkgver-py2"
+  python2 setup.py install --root="$pkgdir/" --optimize=1 --skip-build
+}
+
+package_python-shutilwhich() {
+  depends=('python')
+  cd "shutilwhich-$pkgver"
+  python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
+}
+



More information about the arch-commits mailing list