X-Original-To: alpine-aports@lists.alpinelinux.org Received: from mail.ovgu.de (mail.ovgu.de [141.44.1.66]) by lists.alpinelinux.org (Postfix) with ESMTP id 584895C4EFD for ; Tue, 4 Jul 2017 17:34:17 +0000 (GMT) Received: from mail.ovgu.de (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id DD28E40062 for ; Tue, 4 Jul 2017 19:34:16 +0200 (CEST) Received: from localhost.localdomain (euk-gateway.cs.uni-magdeburg.de [141.44.25.67]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.ovgu.de (Postfix) with ESMTPSA id 2A64C40061; Tue, 4 Jul 2017 19:34:16 +0200 (CEST) From: Marian Buschsieweke To: alpine-aports@lists.alpinelinux.org Cc: Marian Buschsieweke Subject: [alpine-aports] [PATCH] testing/ampy: new aport Date: Tue, 4 Jul 2017 19:34:13 +0200 Message-Id: <20170704173413.12518-1-marian.buschsieweke@ovgu.de> X-Mailer: git-send-email 2.13.2 X-PMX-Version: 6.3.3.2656215, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2017.7.4.172716, AntiVirus-Engine: 5.38.0, AntiVirus-Data: 2017.7.4.5380002 X-PMX-Spam: Gauge=IIIIIIII, Probability=8%, Report=' HTML_00_01 0.05, HTML_00_10 0.05, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_1600_1699 0, BODY_SIZE_2000_LESS 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, LEGITIMATE_SIGNS 0, MULTIPLE_REAL_RCPTS 0, URI_WITH_PATH_ONLY 0, __ANY_URI 0, __C230066_P5 0, __CC_NAME 0, __CC_NAME_DIFF_FROM_ACC 0, __CC_REAL_NAMES 0, __CP_URI_IN_BODY 0, __FRAUD_MONEY_CURRENCY 0, __FRAUD_MONEY_CURRENCY_DOLLAR 0, __FROM_DOMAIN_IN_ANY_CC1 0, __FROM_DOMAIN_IN_RCPT 0, __HAS_CC_HDR 0, __HAS_FROM 0, __HAS_MSGID 0, __HAS_X_MAILER 0, __HTTPS_URI 0, __MIME_TEXT_ONLY 0, __MIME_TEXT_P 0, __MIME_TEXT_P1 0, __MULTIPLE_URI_TEXT 0, __NO_HTML_TAG_RAW 0, __SANE_MSGID 0, __SUBJ_ALPHA_END 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0, __URI_IN_BODY 0, __URI_NOT_IMG 0, __URI_NO_WWW 0, __URI_NS , __URI_WITH_PATH 0' X-Spam-Score: Gauge=IIIIIIII X-PMX-consideredAsSpam: no X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: Utility to interact with a MicroPython board over a serial connection https://github.com/adafruit/ampy WARNING: It has pyserial for Python 3 as dependy. Thus, this package should not be accepted before my patch for testing/py-serial is accepted, which provides py3-serial. --- testing/ampy/APKBUILD | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 testing/ampy/APKBUILD diff --git a/testing/ampy/APKBUILD b/testing/ampy/APKBUILD new file mode 100644 index 0000000000..9647640219 --- /dev/null +++ b/testing/ampy/APKBUILD @@ -0,0 +1,37 @@ +# Maintainer: Marian Buschsieweke +pkgname=ampy +pkgver=0.20170704 +pkgrel=0 +pkgdesc="Utility to interact with a MicroPython board over a serial connection" +url="https://github.com/adafruit/ampy" +arch="noarch" +license="MIT" +depends="python3 py3-serial py3-click py-setuptools" +makedepends="python3-dev" +install="" +subpackages="$pkgname-doc" +source="https://github.com/adafruit/${pkgname}/archive/master.zip" + +builddir="$srcdir/$pkgname-master" + +prepare() { + cd "$builddir" + touch CONTRIBUTING.md +} + +build() { + cd "$builddir" + python3 setup.py build || return 1 +} + +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.md \ + "$pkgdir"/usr/share/doc/$pkgname/ || return 1 +} + +sha512sums="eb73d5a7cd385860de0b341dc344ba26478dbbd68385718c96025ddbf3c831487ef039fe44b1bced46409bcee31fd4a8f3343de69489545e2aa069c363b1b368 master.zip" -- 2.13.2 --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---