diff options
author | prspkt <prspkt@protonmail.com> | 2019-07-01 22:16:05 +0300 |
---|---|---|
committer | prspkt <prspkt@protonmail.com> | 2019-07-01 22:20:35 +0300 |
commit | bf1e32b7ebedf772471fb80bcd290bf1e15013fc (patch) | |
tree | de5ed3b1d0c515f22edfbb80f3e550b73dae7ad0 | |
parent | e80906ed09420e912749e6bc50be06afcd0ffc49 (diff) | |
download | aports-bf1e32b7ebedf772471fb80bcd290bf1e15013fc.tar.bz2 aports-bf1e32b7ebedf772471fb80bcd290bf1e15013fc.tar.xz |
testing/py3-firmata: modernize
* Switch source to github and run the included test suite.
-rw-r--r-- | testing/py3-firmata/APKBUILD | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/testing/py3-firmata/APKBUILD b/testing/py3-firmata/APKBUILD index 294a17e3c0..f39a3cc0e9 100644 --- a/testing/py3-firmata/APKBUILD +++ b/testing/py3-firmata/APKBUILD @@ -3,31 +3,29 @@ pkgname=py3-firmata _pkgname=pyFirmata pkgver=1.0.3 -pkgrel=1 +pkgrel=2 pkgdesc="Python interface for the Firmata procotol" url="https://github.com/tino/pyFirmata" arch="noarch" license="MIT" depends="python3 py3-serial" -depends_dev="" makedepends="py3-setuptools" -install="" -source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" -options="!check" # upstream provides no testsuite - -_builddir="$srcdir/$_pkgname-$pkgver" +source="$_pkgname-$pkgver.tar.gz::https://github.com/tino/pyFirmata/archive/$pkgver.tar.gz" +builddir="$srcdir/$_pkgname-$pkgver" replaces=py-firmata # Backwards compatibility provides=py-firmata=$pkgver-r$pkgrel # Backwards compatibility build() { - cd "$_builddir" python3 setup.py build } +check() { + python3 setup.py test +} + package() { - cd "$_builddir" python3 setup.py install --prefix=/usr --root="$pkgdir" } -sha512sums="9a5986d417447503c39e0497881592cecc38b423c55a627a38b398952cec7469e143ecbf1a82f9cd20ad93c7956ec06553f28e708419f05bb3c1d120961aa1b9 pyFirmata-1.0.3.tar.gz" +sha512sums="626da09ea543dd722129dd7156bb1ba185d40480689d3b0108d89a1a2c9361105822c57e50c39413d1a6ded08f20211b4606b2cb18f5a578c399fda6b00e6abb pyFirmata-1.0.3.tar.gz" |