blob: 70148add536bf1ffd455d5f0f880b536e9ade390 (
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
|
# Maintainer: Klotz <vanziegelstein@gmail.com>
pkgname=baudrate
pkgver=r9.68b7eef
pkgrel=1
pkgdesc="Tool to find the baudrate of a serial device (Python 3 fork)."
arch=('any')
url="https://github.com/sickcodes/python3-baudrate"
license=('MIT')
depends=('python-pyserial' 'python-getch')
replaces=('baudrate=1.0-2')
source=("baudrate::git+https://github.com/sickcodes/python3-baudrate")
md5sums=('SKIP')
pkgver() {
cd "$pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
install -d "$pkgdir/usr/share/licenses/$pkgname"
install -d "$pkgdir/usr/bin"
install -m755 "$srcdir/$pkgname/baudrate.py" "$pkgdir/usr/bin/baudrate"
install -m644 "$srcdir/$pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|