diff options
Diffstat (limited to 'community/py3-gpiozero/APKBUILD')
-rw-r--r-- | community/py3-gpiozero/APKBUILD | 39 |
1 files changed, 8 insertions, 31 deletions
diff --git a/community/py3-gpiozero/APKBUILD b/community/py3-gpiozero/APKBUILD index 9dab9f0435..0e6ca84906 100644 --- a/community/py3-gpiozero/APKBUILD +++ b/community/py3-gpiozero/APKBUILD @@ -1,50 +1,27 @@ # Contributor: ScrumpyJack <scrumpyjack@st.ilet.to> # Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to> -pkgname=py-gpiozero +pkgname=py3-gpiozero _pkgname=gpiozero pkgver=1.5.1 -pkgrel=0 +pkgrel=1 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" +depends="python3" +makedepends="py3-setuptools" source="$_pkgname-$pkgver.tar.gz::https://github.com/gpiozero/gpiozero/archive/v$pkgver.tar.gz" +builddir="$srcdir/$_pkgname-$pkgver" -builddir=$srcdir/$_pkgname-$pkgver +replaces="py-gpiozero" # Backwards compatibility +provides="py-gpiozero=$pkgver-r$pkgrel" # Backwards compatibility build() { - python2 setup.py build python3 setup.py build } package() { - mkdir -p "$pkgdir" + python3 setup.py install --prefix=/usr --root="$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" - |