diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-09-07 22:29:52 -0300 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-09-08 05:44:07 -0300 |
commit | ddf3b1f4f393dcb7ff10de0cadbda8ab6ddab3b5 (patch) | |
tree | c05784caebcd091a14f81c4d6b7005e81b7226d7 /community/py3-gpiozero | |
parent | 9f4458ceae490854765d7d5d0bcaafe080a51473 (diff) | |
download | aports-ddf3b1f4f393dcb7ff10de0cadbda8ab6ddab3b5.tar.bz2 aports-ddf3b1f4f393dcb7ff10de0cadbda8ab6ddab3b5.tar.xz |
community/py3-gpiozero: rename from py-gpiozero
Diffstat (limited to 'community/py3-gpiozero')
-rw-r--r-- | community/py3-gpiozero/APKBUILD | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/community/py3-gpiozero/APKBUILD b/community/py3-gpiozero/APKBUILD new file mode 100644 index 0000000000..9dab9f0435 --- /dev/null +++ b/community/py3-gpiozero/APKBUILD @@ -0,0 +1,50 @@ +# Contributor: ScrumpyJack <scrumpyjack@st.ilet.to> +# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to> +pkgname=py-gpiozero +_pkgname=gpiozero +pkgver=1.5.1 +pkgrel=0 +pkgdesc="A simple interface to everyday GPIO components used with Raspberry Pi" +url="http://gpiozero.readthedocs.org" +arch="armhf armv7" +license="BSD-3-Clause" +makedepends="python2-dev python3-dev py-setuptools" +subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" +source="$_pkgname-$pkgver.tar.gz::https://github.com/gpiozero/gpiozero/archive/v$pkgver.tar.gz" + +builddir=$srcdir/$_pkgname-$pkgver + +build() { + python2 setup.py build + python3 setup.py build +} + +package() { + mkdir -p "$pkgdir" +} + + +_py2() { + depends="${depends//py-/py2-}" + _py python2 +} + +_py3() { + depends="${depends//py-/py3-}" + _py python3 +} + +_py() { + local python="$1" + pkgdesc="$pkgdesc (for $python)" + depends="$depends $python" + install_if="$pkgname=$pkgver-r$pkgrel $python" + + cd "$builddir" + $python setup.py install --prefix=/usr --root="$subpkgdir" +} + + + +sha512sums="73347ec887f6d6b58a09d8bfe604826df62cb9455fe2eab0de74e5130f7f9912a2f4caa25b1eaa80b50a5e1b1b4f712333facd1ff9405d53122f9602282fbf82 gpiozero-1.5.1.tar.gz" + |