diff options
author | Fabian Affolter <fabian@affolter-engineering.ch> | 2013-10-07 09:55:20 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-10-22 08:23:16 +0000 |
commit | 6ad960b467bc2bf6c1d24114a75d339ece2a6889 (patch) | |
tree | 0b38f26b67e7828552e2b45252c7fe7b80443c18 /testing | |
parent | b054b5eb63f5450f73128b4684f7713c3e46beb9 (diff) | |
download | aports-6ad960b467bc2bf6c1d24114a75d339ece2a6889.tar.bz2 aports-6ad960b467bc2bf6c1d24114a75d339ece2a6889.tar.xz |
testing/py-docopt: new aport
A Python argument parser
http://docopt.org/
Diffstat (limited to 'testing')
-rw-r--r-- | testing/py-docopt/APKBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/py-docopt/APKBUILD b/testing/py-docopt/APKBUILD new file mode 100644 index 0000000000..82577cca57 --- /dev/null +++ b/testing/py-docopt/APKBUILD @@ -0,0 +1,41 @@ +# Contributor: Fabian Affolter <fabian@affolter-engineering.ch> +# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> +pkgname=py-docopt +_pkgname=docopt +pkgver=0.6.1 +pkgrel=0 +pkgdesc="A Python argument parser" +url="http://docopt.org/" +arch="noarch" +license="MIT" +depends="python" +depends_dev="" +makedepends="python-dev py-setuptools" +install="" +subpackages="" +source="http://pypi.python.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" + +_builddir="$srcdir"/$_pkgname-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + python setup.py build || return 1 +} + +package() { + cd "$_builddir" + python setup.py install --prefix=/usr --root="$pkgdir" || return 1 +} + +md5sums="fe36e9b7a1708a0b02a115f2a78cf623 docopt-0.6.1.tar.gz" +sha256sums="71ad940a773fbc23be6093e9476ad57b2ecec446946a28d30127501f3b29aa35 docopt-0.6.1.tar.gz" +sha512sums="8316a1fbd7253d2f7bed0baf07bc023d53b29e01abe69a1898a381c54321024e2f075567cc93488283a5125d7a82c32180f2a99ec07a9ec778e064c0a72e9cc1 docopt-0.6.1.tar.gz" |