X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from tux29.hoststar.ch (tux29.hoststar.ch [85.10.192.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id F3DC96D414F for ; Thu, 25 Aug 2011 20:57:44 +0000 (UTC) Received: from localhost.localdomain (77-56-73-198.dclient.hispeed.ch [77.56.73.198]) (authenticated bits=0) by tux29.hoststar.ch (8.13.8/8.12.11) with ESMTP id p7PKvkmY019726 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 25 Aug 2011 22:57:47 +0200 From: Fabian Affolter To: alpine-devel@lists.alpinelinux.org Cc: Fabian Affolter Subject: [alpine-devel] [PATCH] Initial APKBUILD for pyserial Date: Thu, 25 Aug 2011 20:57:33 +0000 Message-Id: <1314305853-3735-1-git-send-email-fabian@affolter-engineering.ch> X-Mailer: git-send-email 1.7.4.5 X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: Package description: This module encapsulates the access for the serial port. It provides backends for Python. --- testing/py-serial/APKBUILD | 52 ++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 52 insertions(+), 0 deletions(-) create mode 100644 testing/py-serial/APKBUILD diff --git a/testing/py-serial/APKBUILD b/testing/py-serial/APKBUILD new file mode 100644 index 0000000..200eab1 --- /dev/null +++ b/testing/py-serial/APKBUILD @@ -0,0 +1,52 @@ +# Contributor: Fabian Affolter +# Maintainer: Fabian Affolter +pkgname=py-serial +_realname=pyserial +pkgver=2.5 +pkgrel=0 +pkgdesc="Python Serial Port Extension" +url="http://pyserial.sourceforge.net/" +arch="noarch" +license="Python" +depends="python" +makedepends="python-dev" +install="" +subpackages="$pkgname-doc $pkgname-examples" +source="http://pypi.python.org/packages/source/p/"$_realname"/pyserial-$pkgver.tar.gz" +_builddir="$srcdir"/$_realname-$pkgver + +build() { + cd "$_builddir" + python setup.py build || return 1 +} + +package() { + cd "$_builddir" + python setup.py install --prefix=/usr --root="$pkgdir" || return 1 +} + +doc() { + cd "$_builddir" + mkdir -p "$subpkgdir"/usr/share/doc/$pkgname/ || return 1 + # Documentation files + _docs="appendix.rst examples.rst pyparallel.rst pyserial.rst \ + pyserial_api.rst shortintro.rst" + for _doc in $_docs; do + mv "$srcdir"/$_realname-$pkgver/documentation/$_doc \ + "$subpkgdir"/usr/share/doc/$pkgname/$_doc || return 1 + done +} + +examples() { + cd "$_builddir" + mkdir -p "$subpkgdir"/usr/share/doc/$pkgname/examples || return 1 + # Example files + _examples="enhancedserial.py miniterm.py rfc2217_server.py scan.py \ + scanlinux.py tcp_serial_redirect.py port_publisher.py port_publisher.sh" + for _example in $_examples; do + mv "$srcdir"/$_realname-$pkgver/examples/$_example \ + "$subpkgdir"/usr/share/doc/$pkgname/examples/$_example || return 1 + done +} + +md5sums="34340820710239bea2ceca7f43ef8cab pyserial-2.5.tar.gz" -- 1.7.4.5 --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---