diff options
author | prspkt <prspkt@protonmail.com> | 2019-07-21 10:12:49 +0300 |
---|---|---|
committer | prspkt <prspkt@protonmail.com> | 2019-07-21 10:30:31 +0300 |
commit | 012ea2023b0c9bb9c385b0e49184d38f81868a22 (patch) | |
tree | 262fa0c32be7359845aa24336c86bf4f76599039 /testing/platformio-core | |
parent | f968d28cfc712b8ddb3f6b333a402e253fe73a61 (diff) | |
download | aports-012ea2023b0c9bb9c385b0e49184d38f81868a22.tar.bz2 aports-012ea2023b0c9bb9c385b0e49184d38f81868a22.tar.xz |
testing/platformio-core: modernize
Diffstat (limited to 'testing/platformio-core')
-rw-r--r-- | testing/platformio-core/APKBUILD | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/testing/platformio-core/APKBUILD b/testing/platformio-core/APKBUILD index 6d77a3a7b7..821014937b 100644 --- a/testing/platformio-core/APKBUILD +++ b/testing/platformio-core/APKBUILD @@ -4,32 +4,22 @@ pkgname=platformio-core pkgver=4.0.0 pkgrel=0 pkgdesc="An open source ecosystem for IoT development" -url="http://platformio.org" +url="https://platformio.org" arch="noarch" license="Apache-2.0" depends="py3-bottle py3-click5 py3-colorama py3-lockfile py3-requests py3-semanticversion py3-serial" makedepends="py3-setuptools" -install="" -subpackages="$pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/platformio/platformio-core/archive/v$pkgver.tar.gz" -builddir="$srcdir/$pkgname-$pkgver" build() { - cd "$builddir" - python3 setup.py build || return 1 + python3 setup.py build cd "$builddir"/scripts 2to3 -w *.py } package() { - cd "$builddir" - python3 setup.py install --prefix=/usr \ - --root="$pkgdir" || return 1 - - mkdir -p "$pkgdir"/usr/share/doc/$pkgname/ - install -m644 CONTRIBUTING.md README.rst HISTORY.rst \ - "$pkgdir"/usr/share/doc/$pkgname/ || return 1 + python3 setup.py install --prefix=/usr --root="$pkgdir" } |