diff options
author | Jason Nader | 2022-08-26 12:50:10 +0900 |
---|---|---|
committer | Jason Nader | 2022-08-26 12:50:10 +0900 |
commit | 7547843245347f800eb1dd0e6dc71a352f24f33d (patch) | |
tree | 054b816de72d2d447794f5ed96b4af26fd05ea62 /PKGBUILD | |
download | aur-rshell-micropython-git.tar.gz |
First commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..fe8328f2c083 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: Jason Nader <jason nader protonmail com> (replace spaces with dots) + +pkgname=rshell-micropython-git +pkgver=r134.b87878c +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=("${pkgname%-*}::git+https://github.com/dhylands/rshell.git") +sha256sums=('SKIP') + +pkgver() { + cd "${pkgname%-*}" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + + +build() { + cd "${pkgname%-*}" + python setup.py build +} + +package() { + cd "$srcdir/${pkgname%-*}" + python setup.py install --root="$pkgdir" --optimize=1 --skip-build + install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" + install -Dm644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}" +} |