[arch-commits] Commit in python-paver/repos (community-any community-any/PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Thu Aug 16 12:58:35 UTC 2018
Date: Thursday, August 16, 2018 @ 12:58:34
Author: felixonmars
Revision: 371960
archrelease: copy trunk to community-any
Added:
python-paver/repos/community-any/
python-paver/repos/community-any/PKGBUILD
(from rev 371959, python-paver/trunk/PKGBUILD)
----------+
PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
Copied: python-paver/repos/community-any/PKGBUILD (from rev 371959, python-paver/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2018-08-16 12:58:34 UTC (rev 371960)
@@ -0,0 +1,36 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-paver
+pkgver=1.3.4
+pkgrel=1
+pkgdesc="Python-based project scripting"
+url="https://github.com/paver/paver"
+license=('BSD')
+arch=('any')
+depends=('python-six')
+makedepends=('python-setuptools')
+checkdepends=('python-cogapp' 'python-mock' 'python-nose' 'python-virtualenv')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/paver/paver/archive/Paver-$pkgver.tar.gz")
+sha512sums=('5747235b81df1dc8726bfa949f13c544e03c596f58c8bfc7ab55cc285f793fbb44cbcaa98acbc6e4a0554418755d3d70246b0e37249473b062d54a23b6bea35f')
+
+prepare() {
+ cd paver-Paver-$pkgver
+ sed -i 's/from unittest2 import/from unittest import/' tests_integration/*.py
+}
+
+build() {
+ cd paver-Paver-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd paver-Paver-$pkgver
+ python setup.py nosetests
+}
+
+package() {
+ cd paver-Paver-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
+}
More information about the arch-commits
mailing list