X-Original-To: alpine-aports@lists.alpinelinux.org Received: from mail-vk0-f46.google.com (mail-vk0-f46.google.com [209.85.213.46]) by lists.alpinelinux.org (Postfix) with ESMTP id F29F85C5276 for ; Tue, 17 Jul 2018 13:53:00 +0000 (GMT) Received: by mail-vk0-f46.google.com with SMTP id 125-v6so595268vke.11 for ; Tue, 17 Jul 2018 06:53:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=9ctSKSw34VsPv7tG+fLITDYnKbievSQ8FviKnAnqiUc=; b=VGqOFpxlTpv7INumgfkYGOtUeHMySVpZpsVX39iLMycSZhFOQfCS+mywI43IOxt17F yRgzU0H0Ah9Wt+rT6wCKiMl2N5BQ2pE2lJzldwFoL4Izjrnv14C37RGTK2wqG5xDqtpg ftnO9j8lPR6lfEia9U0EEc2Id4Ly2zkGYh7F6qXGzLYyKHC2c1xq7EWgQITpCJUOvUFi Tssk75Y+k4135tpc9A048TC50X4hEv2qj/PvgzD711WHyqvRn5Roao1lN/sZ7HAIz6U7 /fPMwpCGpB6NIH1HMfqUw1wI2nQouztn0QqjI7nWrCzqQqVJihUALRxu/Ncx3X6/w5/6 HntQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=9ctSKSw34VsPv7tG+fLITDYnKbievSQ8FviKnAnqiUc=; b=B4U0ZhXOrHHSKc1xU3j24SzeTU4Gh0cpE3EJcoFepNpAcxNiw4cvyKzOSf9KDxWtrc yKAinZpt2Ujn/J1ECwwUaNbYslau7kQcbKdyPHRCiJeCC1Ag+2ndT6AFoxPhJDgJ0C/4 NmDpMWzD82rGZZei8oqz8AVoU9Ja1Q+UZpICi2imyL/g14d1heVoh58ZpOR7pRTO5zJT /6VoNQWpCHUbhUMZSxu74B2Ga9Uw7ZHQgDXroRyy6Mv1YpfvjqSAUWV2ilm2rM9Fkj3w 1fh1DfTUNeSx+SK+zyC1ruyGmOa6Ipon2nAtOFkHUSp3C4zaTzTyQgxjjM16mSbi3L+Q KA1g== X-Gm-Message-State: AOUpUlGHYVYN18YnJW/pFSD07kXJ0Wi9mctSFj8bzeOwLvmlaSyzXKis MrllNeVSYkb5+AVHZIaInO67WYKB7JQD3jflfL4= X-Google-Smtp-Source: AAOMgpeJgAwHHNvLbf9kZ9P2iPn2wOShj1tfbfTWMKTMnfJyQGT7uyrTnDcrMhq5Pc6CVCFUxoTI7QJHCH+UPBYukXw= X-Received: by 2002:a1f:1e02:: with SMTP id e2-v6mr939009vke.170.1531835580345; Tue, 17 Jul 2018 06:53:00 -0700 (PDT) X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Received: by 2002:ab0:6152:0:0:0:0:0 with HTTP; Tue, 17 Jul 2018 06:53:00 -0700 (PDT) In-Reply-To: <20180508221544.10924-1-marian.buschsieweke@ovgu.de> References: <20180508221544.10924-1-marian.buschsieweke@ovgu.de> From: Leonardo Arena Date: Tue, 17 Jul 2018 15:53:00 +0200 Message-ID: Subject: Re: [alpine-aports] [PATCH] testing/py-usb: New aport To: Marian Buschsieweke Cc: alpine-aports Content-Type: multipart/alternative; boundary="0000000000009ef46c0571324302" --0000000000009ef46c0571324302 Content-Type: text/plain; charset="UTF-8" Hi, check() not enabled or disabled (with comments why). Thanks! On Wed, May 9, 2018 at 12:15 AM, Marian Buschsieweke < marian.buschsieweke@ovgu.de> wrote: > PyUSB offers easy USB devices communication in Python > https://pypi.python.org/pypi/pyusb > --- > testing/py-usb/APKBUILD | 44 +++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 44 insertions(+) > create mode 100644 testing/py-usb/APKBUILD > > diff --git a/testing/py-usb/APKBUILD b/testing/py-usb/APKBUILD > new file mode 100644 > index 0000000000..16dfaa47fc > --- /dev/null > +++ b/testing/py-usb/APKBUILD > @@ -0,0 +1,44 @@ > +# Maintainer: Marian Buschsieweke > +pkgname=py-usb > +_pkgname=pyusb > +pkgver=1.0.2 > +pkgrel=0 > +pkgdesc="PyUSB offers easy USB devices communication in Python" > +url="https://pypi.python.org/pypi/pyusb" > +arch="noarch" > +license="BSD" > +makedepends="python2-dev python3-dev py-setuptools" > +subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" > +source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_ > pkgname/$_pkgname-$pkgver.tar.gz" > +builddir="$srcdir"/$_pkgname-$pkgver > + > +build() { > + cd "$builddir" > + python2 setup.py build || return 1 > + python3 setup.py build || return 1 > +} > + > +package() { > + mkdir -p "$pkgdir" > +} > + > +_py2() { > + replaces="$pkgname" > + _py python2 > +} > + > +_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="218d118c8572ed548d2317725a9717c0a442eb67c05148ccd90505a407bd > 8821a1519f511abc14f96b8e09d914f5a35f57cfabd57c47cb9b3fcd8b61947375a2 > pyusb-1.0.2.tar.gz" > -- > 2.17.0 > > > > --- > Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org > Help: alpine-aports+help@lists.alpinelinux.org > --- > > --0000000000009ef46c0571324302 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

check() not enabled or d= isabled (with comments why).

Thanks!

On Wed, May 9, = 2018 at 12:15 AM, Marian Buschsieweke <marian.buschsieweke@ovgu.= de> wrote:
PyUSB offers eas= y USB devices communication in Python
https://pypi.python.org/pypi/pyusb
---
=C2=A0testing/py-usb/APKBUILD | 44 +++++++++++++++++++++++++++++++++++= ++++++
=C2=A01 file changed, 44 insertions(+)
=C2=A0create mode 100644 testing/py-usb/APKBUILD

diff --git a/testing/py-usb/APKBUILD b/testing/py-usb/APKBUILD
new file mode 100644
index 0000000000..16dfaa47fc
--- /dev/null
+++ b/testing/py-usb/APKBUILD
@@ -0,0 +1,44 @@
+# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
+pkgname=3Dpy-usb
+_pkgname=3Dpyusb
+pkgver=3D1.0.2
+pkgrel=3D0
+pkgdesc=3D"PyUSB offers easy USB devices communication in Python"= ;
+url=3D"https://pypi.python.org/pypi/pyusb"
+arch=3D"noarch"
+license=3D"BSD"
+makedepends=3D"python2-dev python3-dev py-setuptools"
+subpackages=3D"py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3&q= uot;
+source=3D"https://files.pythonhosted.org/packages/source/${_pk= gname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
+builddir=3D"$srcdir"/$_pkgname-$pkgver
+
+build() {
+=C2=A0 =C2=A0 =C2=A0 =C2=A0cd "$builddir"
+=C2=A0 =C2=A0 =C2=A0 =C2=A0python2 setup.py build || return 1
+=C2=A0 =C2=A0 =C2=A0 =C2=A0python3 setup.py build || return 1
+}
+
+package() {
+=C2=A0 =C2=A0 =C2=A0 =C2=A0mkdir -p "$pkgdir"
+}
+
+_py2() {
+=C2=A0 =C2=A0 =C2=A0 =C2=A0replaces=3D"$pkgname"
+=C2=A0 =C2=A0 =C2=A0 =C2=A0_py python2
+}
+
+_py3() {
+=C2=A0 =C2=A0 =C2=A0 =C2=A0_py python3
+}
+
+_py() {
+=C2=A0 =C2=A0 =C2=A0 =C2=A0local python=3D"$1"
+=C2=A0 =C2=A0 =C2=A0 =C2=A0pkgdesc=3D"$pkgdesc (for $python)" +=C2=A0 =C2=A0 =C2=A0 =C2=A0depends=3D"$depends $python"
+=C2=A0 =C2=A0 =C2=A0 =C2=A0install_if=3D"$pkgname=3D$pkgver-r$pk= grel $python"
+
+=C2=A0 =C2=A0 =C2=A0 =C2=A0cd "$builddir"
+=C2=A0 =C2=A0 =C2=A0 =C2=A0$python setup.py install --prefix=3D/usr --root= =3D"$subpkgdir"
+}
+
+sha512sums=3D"218d118c8572ed548d2317725a9717c0a442eb67c0514= 8ccd90505a407bd8821a1519f511abc14f96b8e09d914f5a35f57cfabd57c47cb= 9b3fcd8b61947375a2=C2=A0 pyusb-1.0.2.tar.gz"
--
2.17.0



---
Unsubscribe:=C2=A0 alpine-aports+unsubscribe@lists.alpinelinux.org
Help:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0alpine-aports+help@lists.alpinelinux.org=
---


--0000000000009ef46c0571324302-- --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---