summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7da21efa1d29832eaf88629bb11416127c9437e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Maintainer: Ivan Konovalov <ivknv0@gmail.com>

pkgname=python-pysftp
_name=${pkgname#python-}
pkgver=0.2.9
pkgrel=1
pkgdesc="A simple interface to SFTP for Python"
arch=('any')
url="https://bitbucket.org/dundeemt/pysftp"
license=('BSD')
depends=('python' 'python-paramiko>=1.17')
makedepends=('python-pip' 'curl')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-$pkgver.tar.gz")
sha256sums=("fbf55a802e74d663673400acd92d5373c1c7ee94d765b428d9f977567ac4854a")

package() {
    PIP_CONFIG_FILE=/dev/null pip install --isolated --root="$pkgdir" --ignore-installed --no-deps *.tar.gz || exit
    curl "https://bitbucket.org/dundeemt/pysftp/raw/918494eef04e56f91cbff99c422bb57e21f4e257/LICENSE.txt" -o LICENSE.txt || exit
    install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
}