[arch-commits] Commit in python-shutilwhich/repos (2 files)

Morten Linderud foxboron at archlinux.org
Sat Oct 21 20:55:03 UTC 2017


    Date: Saturday, October 21, 2017 @ 20:55:03
  Author: foxboron
Revision: 263888

archrelease: copy trunk to community-any

Added:
  python-shutilwhich/repos/community-any/
  python-shutilwhich/repos/community-any/PKGBUILD
    (from rev 263887, python-shutilwhich/trunk/PKGBUILD)

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

Copied: python-shutilwhich/repos/community-any/PKGBUILD (from rev 263887, python-shutilwhich/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2017-10-21 20:55:03 UTC (rev 263888)
@@ -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