blob: acb8c728723d712323b16d186b642950acb0113b (
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
25
26
27
28
29
30
31
32
33
34
|
# Maintainer: SelfRef <arch@selfref.dev>
_basename=exscript
pkgname="python-${_basename}-git"
pkgver=2.6.r30.g9d5b035
pkgrel=3
pkgdesc="A Python module making Telnet and SSH easy"
arch=('any')
url="https://github.com/knipknap/exscript"
license=('MIT')
conflicts=("python-${_basename}")
provides=("python-${_basename}")
depends=('python' 'python-future' 'python-configparser' 'python-pycryptodomex' 'python-paramiko>=1.17')
makedepends=('git' 'python-setuptools')
source=("${_basename}"::"git+https://github.com/knipknap/exscript.git")
md5sums=('SKIP')
pkgver() {
cd ${_basename}
git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//'
}
build() {
cd ${_basename}
# from the upstream version.sh called by original Makefile
_version=`git describe $HEAD --tags --match "v[0-9]*" | sed 's/^v//;s/-[^\-]*$//;s/-/./' 2>/dev/null`
sed -i "s/DEVELOPMENT/$_version/" ./Exscript/version.py
python setup.py build
}
package() {
cd ${_basename}
python setup.py install --root="$pkgdir" --optimize=1
}
|