[arch-commits] Commit in python-docopt/trunk (PKGBUILD)
Fabio Castelli
muflone at archlinux.org
Sun Oct 5 18:51:52 UTC 2014
Date: Sunday, October 5, 2014 @ 20:51:52
Author: muflone
Revision: 120177
upgpkg: python-docopt 0.6.2-2
0.6.2-1 pkgbuild cleanup, removed license file, provided upstream
Modified:
python-docopt/trunk/PKGBUILD
----------+
PKGBUILD | 49 +++++++++++++++++++++++++------------------------
1 file changed, 25 insertions(+), 24 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2014-10-05 17:44:05 UTC (rev 120176)
+++ PKGBUILD 2014-10-05 18:51:52 UTC (rev 120177)
@@ -1,43 +1,44 @@
# $Id$
-# Maintainer: Daniel Wallace <danielwallace at gtmanfred dot com>
+# Maintainer: Muflone http://www.muflone.com/contacts/english/
+# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
# Contributor: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
pkgbase=python-docopt
_pkgname=docopt
-pkgname=(python-docopt python2-docopt)
+pkgname=('python-docopt' 'python2-docopt')
pkgver=0.6.2
-pkgrel=1
-pkgdesc="Pythonic option parser, that will make you smile"
-arch=(any)
+pkgrel=2
+pkgdesc="Pythonic argument parser, that will make you smile"
+arch=('any')
url="https://github.com/docopt/docopt"
license=('MIT')
makedepends=('python-setuptools' 'python2-setuptools')
-source=("http://pypi.python.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" LICENSE-MIT)
-sha256sums=('49b3a825280bd66b3aa83585ef59c4a8c82f2c8a522dbe754a8bc8d08c85c491'
- '3d5df78f592ff2433c3c6ce4984091b7f497059ddb8c6b08a061ba48e37b67f2')
+source=("http://pypi.python.org/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
+sha256sums=('49b3a825280bd66b3aa83585ef59c4a8c82f2c8a522dbe754a8bc8d08c85c491')
prepare(){
- cp -dpr --no-preserve=owner $_pkgname-$pkgver $_pkgname-$pkgver-2
+ cp -dpr --no-preserve=owner "${_pkgname}-${pkgver}" "${_pkgname}-${pkgver}-2"
}
build() {
- cd "$srcdir/$_pkgname-$pkgver"
- python setup.py build
- cd "$srcdir/$_pkgname-$pkgver-2"
- python2 setup.py build
+ # Build Python 3.x module
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+ python setup.py build
+ # Build Python 2.x module
+ cd "${srcdir}/${_pkgname}-${pkgver}-2"
+ python2 setup.py build
}
-package_python2-docopt() {
- cd "$srcdir/$_pkgname-$pkgver-2"
- python2 setup.py install --skip-build -O1 --root="$pkgdir"
- depends=('python2')
- install -Dm0644 "$srcdir/LICENSE-MIT" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+package_python-docopt() {
+ depends=('python')
+ cd "${_pkgname}-${pkgver}"
+ python setup.py install --skip-build --optimize=1 --root="${pkgdir}"
+ install -D -m 0644 "LICENSE-MIT" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
-package_python-docopt() {
- cd "$srcdir/$_pkgname-$pkgver"
- depends=('python')
- python setup.py install --skip-build -O1 --root="$pkgdir"
- install -Dm0644 "$srcdir/LICENSE-MIT" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+package_python2-docopt() {
+ depends=('python2')
+ cd "${_pkgname}-${pkgver}-2"
+ python2 setup.py install --skip-build --optimize=1 --root="${pkgdir}"
+ install -D -m 0644 "LICENSE-MIT" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
-
More information about the arch-commits
mailing list