# Maintainer: Christopher Arndt # Contributor: Jannik Becher pkgname=rshell pkgver=0.0.32 pkgrel=1 pkgdesc="A remote shell for working with MicroPython boards." url="https://github.com/dhylands/rshell" depends=('python-pyudev' 'python-pyserial') makedepends=('python-setuptools') license=('MIT') arch=('any') source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/${pkgname}/${pkgname}-${pkgver}.tar.gz") sha256sums=('7eb230676d49cd5831452f8aa2e0630d284708fd650a8530c324b2da8146709f') build() { cd "$srcdir/${pkgname}-${pkgver}" python setup.py build } package() { cd "$srcdir/${pkgname}-${pkgver}" # Python package and scripts python setup.py install --root="$pkgdir" --optimize=1 --skip-build # License install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" # Documentation install -Dm644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}" }