summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d047377a3d1140c083267be928c0990e41ca68f2 (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: Techmeology <techmeology@techmeology.co.uk>
# Fork of https://aur.archlinux.org/packages/cmake-lint/ to provide git version
pkgname=cmake-lint-git
pkgver=1.4.r3.g058c6c0
pkgrel=1
pkgdesc="Check for coding style issues in CMake files"
arch=('any')
url="http://github.com/richq/cmake-lint/"
license=('APACHE')
depends=('python')
makedepends=('python-setuptools')
conflicts=(cmake-lint)
provides=(cmake-lint)
source=('git+https://github.com/richq/cmake-lint.git')
sha512sums=(SKIP)

pkgver() {
  cd "$srcdir/cmake-lint"
  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "$srcdir/cmake-lint"
  python setup.py build
}

package() {
  cd "$srcdir/cmake-lint"
  python ./setup.py install --prefix=/usr --root="$pkgdir"
}