summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 24b4e440d23d80ae61ea80237939e0161ffc1224 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Maintainer: mars <gzhqyz at gmail dot com>
# Contributor: Daniel M. Capella <polyzen at archlinux dot org>
# Contributor: Darshit Shah <darnir at gmail dot com>

pkgname=vint-git
pkgver=0.4a4.dev8+g5b05880
pkgrel=1
pkgdesc='Lint tool for Vim script Language (git version)'
arch=('any')
url=https://github.com/Vimjas/vint
license=('MIT')
depends=('python-wheel' 'python-ansicolor' 'python-chardet' 'python-setuptools' 'python-yaml')
checkdepends=('python-pytest')
provides=('vint')
conflicts=('python-vint' 'vint')
source=("$pkgname::git+https://github.com/Vimjas/vint.git")
sha256sums=('SKIP')

pkgver() {
  cd $pkgname
  echo "$(python setup.py --version | tail -n1)"
}

build() {
  cd $pkgname
  python setup.py build
}

check() {
  cd $pkgname
  pytest
}

package() {
  cd $pkgname
  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
  install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

# vim:set ts=2 sw=2 et: