Oliver Smith 9d9f981a2c aports: add support for armv7 [skip ci]
This makes it possible to provide armv7 as additional architecture in
Alpine, next to armhf. See the discussion in this ML thread:
<https://lists.alpinelinux.org/alpine-devel/6271.html>

It's done by adding armv7 next to armhf in the arch line and also
!armv7 where the arch line said !armhf. The following script was used:
2018-09-24 10:19:24 +03:00

33 lines
1.1 KiB
Plaintext

# Contributor: ScrumpyJack <scrumpyjack@st.ilet.to>
# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
pkgname=py-gpiozero
_pkgname=python-gpiozero
pkgver=1.1.0
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"
depends="python2"
depends_dev=""
makedepends="python2-dev py-setuptools"
install=""
subpackages=""
source="$_pkgname-$pkgver.tar.gz::https://github.com/RPi-Distro/${_pkgname}/archive/v${pkgver}.tar.gz"
_builddir=${srcdir}/${_pkgname}-${pkgver}
build() {
cd "$_builddir"
python2 setup.py build || return 1
}
package() {
cd "$_builddir"
python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
}
md5sums="082fc277ab07fbf68397f75ed50ebb61 python-gpiozero-1.1.0.tar.gz"
sha256sums="f68af12d203c998c6265ffd1f820236480639a044f64d6b81311575da8f62ced python-gpiozero-1.1.0.tar.gz"
sha512sums="e9519bf59d28da5b7c6771b49c99359ec2a0d6ae49433189d009c9be5af8c0e57b857265b1210a6cafdd88e71b3fa2d33d6b1d5ceae38371579f3478e96419e6 python-gpiozero-1.1.0.tar.gz"