diff options
author | Hugo Osvaldo Barrera | 2017-02-21 00:37:48 -0300 |
---|---|---|
committer | Hugo Osvaldo Barrera | 2017-08-12 19:48:49 -0300 |
commit | 61547913c8faf4c24977a2662ab0887bb205228e (patch) | |
tree | 362e62db016fdf089fb6582fc55cc7777826c98c /PKGBUILD | |
download | aur-flake8-sql.tar.gz |
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..159a73b0a71f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,24 @@ +# Maintainer: Hugo Osvaldo Barrera <hugo@barrera.io> + +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') +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" +} |