[arch-commits] Commit in python-colour/trunk (PKGBUILD)
Eli Schwartz
eschwartz at archlinux.org
Sun Sep 16 03:39:52 UTC 2018
Date: Sunday, September 16, 2018 @ 03:39:51
Author: eschwartz
Revision: 382189
upgpkg: python-colour 0.1.5-4
add testsuite
fix missing makedepends downloaded from PyPI during build()
use PyPI release which does not depend on git metadata
Modified:
python-colour/trunk/PKGBUILD
----------+
PKGBUILD | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-09-16 02:37:40 UTC (rev 382188)
+++ PKGBUILD 2018-09-16 03:39:51 UTC (rev 382189)
@@ -4,29 +4,29 @@
pkgname=python-colour
_pyname=colour
pkgver=0.1.5
-pkgrel=3
+pkgrel=4
pkgdesc="Colour representations manipulation library (RGB, HSL, web, ...)"
arch=('any')
url="https://github.com/vaab/colour"
license=('BSD')
depends=('python')
-makedepends=('git' 'python-setuptools')
-_commit=11f138eb7841d2045160b378a2eec0c2321144c0 # tags/0.1.5
-source=("git+https://github.com/vaab/colour#commit=$_commit")
-sha256sums=('SKIP')
+makedepends=('python-setuptools' 'python-d2to1')
+checkdepends=('python-nose')
+source=("https://files.pythonhosted.org/packages/source/${_pyname:0:1}/${_pyname}/${_pyname}-${pkgver}.tar.gz")
+sha256sums=('af20120fefd2afede8b001fbef2ea9da70ad7d49fafdb6489025dae8745c3aee')
-pkgver() {
- cd $_pyname
- git describe --tags | sed 's/-/+/g'
-}
-
build() {
- cd $_pyname
+ cd $_pyname-$pkgver
python setup.py build
}
+check() {
+ cd $_pyname-$pkgver
+ nosetests
+}
+
package() {
- cd $_pyname
+ cd $_pyname-$pkgver
python setup.py install --root="$pkgdir" --optimize=1
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
More information about the arch-commits
mailing list