summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorcaltlgin2020-09-22 07:30:02 +1200
committercaltlgin2020-09-22 07:30:02 +1200
commit984daf23ed10cec06b3552b491f8811f5acda2d3 (patch)
tree6e8663b64f5d365917d914875a0461715abcab9a /PKGBUILD
parent9e00402851e8bfb2542f91a169db5ff929ca2e4b (diff)
downloadaur-984daf23ed10cec06b3552b491f8811f5acda2d3.tar.gz
Refactored PKGBUILD
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD60
1 files changed, 30 insertions, 30 deletions
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: