summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8db0fdcc1bf6bb7572e112dd38a43988ed25de93 (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-sql"
_pkgname=flake8-sql
pkgver=0.2.0
pkgrel=1
pkgdesc="Plugin that checks SQL code against opinionated style rules."
arch=('any')
url="https://github.com/pgjones/${_pkgname}"
license=('MIT')
depends=('flake8')
replaces=('flake8-sql')
provides=('flake8-sql')
source=("https://github.com/pgjones/flake8-sql/archive/$pkgver.tar.gz")
md5sums=('1cde8e06c25aec0a415c32aafd8567f3')

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

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

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