summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3e0f5ee32ea0997285f0dce694ef142a8c4f3fac (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
# Maintainer: Christoph Gysin <christoph.gysin@gmail.com>

pkgname=bashate
pkgver=2.1.1
pkgrel=1
pkgdesc="Code style enforcement for bash programs"
arch=('any')
makedepends=('python-setuptools')
depends=('python'
         'python-pbr')
url="https://github.com/openstack/${pkgname}"
license=('Apache')
source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
sha256sums=('a28fda309b4d7577a5d83a9f0ea8b305cb8fc626d5b320ed1bcb875ed7c576a9')

build() {
    cd ${srcdir}/${pkgname}-${pkgver}
    PBR_VERSION=$pkgver \
    python setup.py build
}

package() {
    cd ${srcdir}/${pkgname}-${pkgver}
    PBR_VERSION=$pkgver \
    python setup.py install \
        --skip-build \
        --optimize=1 \
        --prefix=/usr \
        --root=${pkgdir}
}