summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a7c8188cee86ce399d18a47c01e0388a2b93e810 (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
# Maintainer: Eric Engestrom <aur [at] engestrom [dot] ch>
# Maintainer: orumin <dev@orum.in>

pkgname=coccigrep-git
pkgver=1.20
pkgrel=1
pkgdesc='Semantic grep for the C language based on coccinelle. Git version'
arch=('any')
url='http://home.regit.org/software/coccigrep/'
license=('GPL3')
depends=('coccinelle')
makedepends=('python-setuptools')
source=('git+https://github.com/regit/coccigrep')
md5sums=('SKIP')
provides=("coccigrep=${pkgver%+*}")
conflict=('coccigrep')

pkgver() {
  git -C coccigrep describe --abbrev=7 --tags | sed 's/^v//; s/-/+/; s/-/./'
}

package() {
  cd coccigrep
  python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=0
}