diff options
Diffstat (limited to 'testing/py-docopt/APKBUILD')
-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" |