summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorcaltlgin2020-09-22 07:30:02 +1200
committercaltlgin2020-09-22 07:30:02 +1200
commit984daf23ed10cec06b3552b491f8811f5acda2d3 (patch)
tree6e8663b64f5d365917d914875a0461715abcab9a
parent9e00402851e8bfb2542f91a169db5ff929ca2e4b (diff)
downloadaur-984daf23ed10cec06b3552b491f8811f5acda2d3.tar.gz
Refactored PKGBUILD
-rw-r--r--.SRCINFO17
-rw-r--r--.gitignore7
-rw-r--r--PKGBUILD60
3 files changed, 41 insertions, 43 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 54dcdf488bd..2ad8fd6fc2c 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,22 +1,27 @@
pkgbase = python-black-git
pkgdesc = Uncompromising Python code formatter
- pkgver = 19.3b0.r51.g1bbb01b
+ pkgver = 20.8b1.r24.g6dddbd7
pkgrel = 1
- url = https://github.com/ambv/black
+ url = https://github.com/psf/black
arch = any
license = MIT
- checkdepends = python-aiohttp
makedepends = git
+ makedepends = python-setuptools
+ depends = python
depends = python-appdirs
- depends = python-attrs
depends = python-click
+ depends = python-mypy_extensions
+ depends = python-pathspec
+ depends = python-regex
depends = python-setuptools
depends = python-toml
depends = python-typed-ast
+ depends = python-typing_extensions
optdepends = python-aiohttp: for the blackd HTTP server
+ optdepends = python-aiohttp-cors: for the blackd HTTP server
+ optdepends = python-colorama: for colored diffs
provides = python-black
- conflicts = python-black
- source = python-black-git::git+https://github.com/ambv/black.git
+ source = python-black::git+https://github.com/psf/black.git
sha256sums = SKIP
pkgname = python-black-git
diff --git a/.gitignore b/.gitignore
deleted file mode 100644
index bc9028b62ec..00000000000
--- a/.gitignore
+++ /dev/null
@@ -1,7 +0,0 @@
-# Blacklist:
-*
-
-# Whitelist:
-!.SRCINFO
-!.gitignore
-!PKGBUILD
diff --git a/PKGBUILD b/PKGBUILD
index b9c4795b25c..68ef071456f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,47 +1,47 @@
-# Maintainer: Dan Beste <Dan.Ray.Beste@gmail.com>
-# Maintainer: Daniel M. Capella <polyzen@archlinux.org>
+# Maintainer: Caltlgin Stsodaat <contact@fossdaily.xyz>
+# Contributor: Dan Beste <Dan.Ray.Beste@gmail.com>
+# Contributor: Daniel M. Capella <polyzen@archlinux.org>
-pkgname='python-black-git'
-pkgver=19.3b0.r51.g1bbb01b
+_pkgname='python-black'
+pkgname="${_pkgname}-git"
+pkgver=20.8b1.r24.g6dddbd7
pkgrel=1
pkgdesc='Uncompromising Python code formatter'
arch=('any')
-url='https://github.com/ambv/black'
+url='https://github.com/psf/black'
license=('MIT')
-depends=('python-appdirs' 'python-attrs' 'python-click' 'python-setuptools'
- 'python-toml' 'python-typed-ast')
-makedepends=('git')
-checkdepends=('python-aiohttp')
-optdepends=('python-aiohttp: for the blackd HTTP server')
-provides=("${pkgname/-git}")
-conflicts=("${pkgname/-git}")
-source=("${pkgname}::git+$url.git")
+depends=('python'
+ 'python-appdirs'
+ 'python-click'
+ 'python-mypy_extensions'
+ 'python-pathspec'
+ 'python-regex'
+ 'python-setuptools'
+ 'python-toml'
+ 'python-typed-ast'
+ 'python-typing_extensions')
+makedepends=('git' 'python-setuptools')
+optdepends=('python-aiohttp: for the blackd HTTP server'
+ 'python-aiohttp-cors: for the blackd HTTP server'
+ 'python-colorama: for colored diffs')
+provides=("${_pkgname}")
+source=("${_pkgname}::git+${url}.git")
sha256sums=('SKIP')
pkgver() {
- cd "${pkgname}"
-
- git describe --long --tags \
- | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+ git -C "${_pkgname}" describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
- cd "${pkgname}"
-
+ cd "${_pkgname}"
python setup.py build
}
-check() {
- cd "${pkgname}"
-
- python -m unittest tests/test_black.py
-}
-
package() {
- cd "${pkgname}"
-
- python setup.py install --root="$pkgdir" --optimize=1 --skip-build
- install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
+ cd "${_pkgname}"
+ python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+ install -Dm644 -t "${pkgdir}/usr/share/doc/${_pkgname}" 'README.md'
+ install -Dm644 -t "${pkgdir}/usr/share/licenses/${_pkgname}" 'LICENSE'
}
-# vim:set ts=2 sw=2 et:
+# vim: ts=2 sw=2 et: