[arch-commits] Commit in python-shutilwhich/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Mon Nov 4 06:19:57 UTC 2019
Date: Monday, November 4, 2019 @ 06:19:56
Author: felixonmars
Revision: 523366
archrelease: copy trunk to community-staging-any
Added:
python-shutilwhich/repos/community-staging-any/
python-shutilwhich/repos/community-staging-any/PKGBUILD
(from rev 523364, python-shutilwhich/trunk/PKGBUILD)
----------+
PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
Copied: python-shutilwhich/repos/community-staging-any/PKGBUILD (from rev 523364, python-shutilwhich/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-11-04 06:19:56 UTC (rev 523366)
@@ -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=5
+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