summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 95940a70807688cdefba800bdb1a60e38de96667 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Maintainer: yuhldr <yuhldr@qq.com>

_pkgname=('git-pylint-commit-hook')
pkgname="python-${_pkgname}"
pkgver=2.6.1
pkgrel=1
pkgdesc="Git pre-commit hook to check Python code quality with pylint. You can use this hook to prohibit Python code with a bad syntax to be checked in."
arch=('any')
url="https://github.com/sebdah/${_pkgname}"
license=('Apaches')
depends=("python-future" "python-pylint")
makedepends=('python-setuptools' 'python')
source=("${url}/archive/refs/tags/$pkgver.tar.gz")
sha256sums=('81a97310fa95f0d1ee22c10de9d22ac34797bfa57cb5b9a0df0c3452cc2c46b6')



package() {
  cd "$srcdir"/${_pkgname=('git-pylint-commit-hook')
}-${pkgver}
  python setup.py install --root "$pkgdir"
  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$_pkgname/LICENSE
}