summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dd9f50e0cec3757158dedb6b3b8a5d58ad62c24f (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
# Maintainer: Hugo Osvaldo Barrera <hugo@barrera.io>

pkgname="python-flake8-import-order"
_pkgname="flake8-import-order"
pkgver=0.18.1
pkgrel=1
pkgdesc="Plugin that checks import order against various Python Style Guides."
arch=('any')
url="https://github.com/PyCQA/${_pkgname}"
license=('Expat')
depends=('flake8' 'python-asttokens')
provides=('flake8-import-order')
replaces=('flake8-import-order')
source=("https://github.com/PyCQA/flake8-import-order/archive/$pkgver.tar.gz")
md5sums=('ff46b947f3c9fe52530ad71ed79f86d0')

build() {
    cd "${_pkgname}-${pkgver}"
    python setup.py build
}

package() {
    cd "${_pkgname}-${pkgver}"
    python setup.py install --root="${pkgdir}" --optimize=1

    install -Dm 644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}