summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFilipe Nascimento2020-11-10 19:13:50 -0300
committerFilipe Nascimento2020-11-10 19:13:50 -0300
commit4388335cca792d76ea459d37155df3c623d4200f (patch)
tree42a101661520dbc4a30730f85dc6032f4f03a763
parent6a81349719e9fb95a05f1dbb28dceae3e9f1e6cc (diff)
downloadaur-4388335cca792d76ea459d37155df3c623d4200f.tar.gz
upgpkg: python-colored 1.4.2-1
upstream release
-rw-r--r--.SRCINFO10
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD30
3 files changed, 23 insertions, 21 deletions
diff --git a/.SRCINFO b/.SRCINFO
index be760511afe..19f96c96dd5 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,14 +1,14 @@
pkgbase = python-colored
pkgdesc = Very simple Python library for color and formatting in terminal
- pkgver = 1.3.93
- pkgrel = 3
+ pkgver = 1.4.2
+ pkgrel = 1
url = https://gitlab.com/dslackw/colored
arch = any
- license = GPL3
+ license = MIT
makedepends = python-setuptools
depends = python
- source = python-colored-v1.3.93.tar.gz::https://gitlab.com/dslackw/colored/-/archive/1.3.93/colored-1.3.93.tar.gz
- sha256sums = a8854f55bb372140fe1c4b3484f0750c6cdf9d89c06b82940c399b36307e5d74
+ source = https://files.pythonhosted.org/packages/source/c/colored/colored-1.4.2.tar.gz
+ sha256sums = 056fac09d9e39b34296e7618897ed1b8c274f98423770c2980d829fd670955ed
pkgname = python-colored
diff --git a/.gitignore b/.gitignore
deleted file mode 100644
index 257b29d9df3..00000000000
--- a/.gitignore
+++ /dev/null
@@ -1,4 +0,0 @@
-pkg/
-*.pkg.tar.xz
-src/
-*.tar.gz
diff --git a/PKGBUILD b/PKGBUILD
index 519ac637f43..6439615de2a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,20 +1,26 @@
-# Maintainer : Simon Doppler <dop dot simon at gmail dot com>
+# Maintainer: Filipe Nascimento <flipee at tuta dot io>
+# Contributor: Simon Doppler <dop dot simon at gmail dot com>
-_projname=colored
pkgname=python-colored
-pkgver=1.3.93
-pkgrel=3
-pkgdesc='Very simple Python library for color and formatting in terminal'
+_name=${pkgname#python-}
+pkgver=1.4.2
+pkgrel=1
+pkgdesc="Very simple Python library for color and formatting in terminal"
arch=('any')
-url="https://gitlab.com/dslackw/${_projname}"
-license=('GPL3')
+url="https://gitlab.com/dslackw/colored"
+license=('MIT')
depends=('python')
makedepends=('python-setuptools')
-source=("${pkgname}-v${pkgver}.tar.gz::https://gitlab.com/dslackw/${_projname}/-/archive/${pkgver}/colored-${pkgver}.tar.gz")
-sha256sums=('a8854f55bb372140fe1c4b3484f0750c6cdf9d89c06b82940c399b36307e5d74')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha256sums=('056fac09d9e39b34296e7618897ed1b8c274f98423770c2980d829fd670955ed')
-package() {
- cd ${_projname}-${pkgver}
- python setup.py install --root="$pkgdir"
+build() {
+ cd $_name-$pkgver
+ python setup.py build
}
+package() {
+ cd $_name-$pkgver
+ python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
+ install -Dm644 LICENSE.txt -t "$pkgdir/usr/share/licenses/$pkgname"
+}