summaryrefslogtreecommitdiff
path: root/pcr/python2-shutilwhich/PKGBUILD
blob: d6013bd9df4e244db2a519675fc14fbf704da3e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Maintainer: Luke R. <g4jc@openmailbox.org> GPG: rsa4096/3EAE8697

pkgname=python2-shutilwhich
pkgver=1.1.0
pkgrel=1
pkgdesc="shutil.which for those not using Python 3.3 yet."
url="http://github.com/mbr/shutilwhich"
depends=('python2' )
makedepends=('python2' 'python2-setuptools')
license=('PSF')
arch=('any')
source=(https://pypi.python.org/packages/source/s/shutilwhich/shutilwhich-$pkgver.tar.gz)
sha512sums=('94001875c428ce1ad1c92e5f5be1ed497630ac0e2221dbb93fde8438f128f4f2663a0a13e17b94852e4813aadec694fa21c24f647500e8053c89ec610eb7fe21')

build() {
    cd $srcdir/shutilwhich-$pkgver
    python2 setup.py build
}

package() {
    cd $srcdir/shutilwhich-$pkgver
    python2 setup.py install --root="$pkgdir" --optimize=1 
    chmod 644 $pkgdir/usr/lib/python2.7/site-packages/shutilwhich-1.1.0-py2.7.egg-info/PKG-INFO 
}