summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 992bed1a70319cd970015f6929d3166f2e2c5f2c (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
31
32
# Maintainer: orumin <dev@orum.in>

_gitroot=coccigrep
pkgname=coccigrep-git
provides=('coccigrep')
conflict=('coccigrep')
pkgver=v1.16.r1.g6d70e56
pkgrel=1
pkgdesc='coccigrep is a semantic grep for the C language based on coccinelle. Git HEAD Package version'
arch=('any')
url='http://http://home.regit.org/software/coccigrep/'
license=('GPL3')
depends=('python-setuptools')
makedepends=('python-setuptools')
source=("git+https://github.com/regit/$_gitroot.git")
md5sums=('SKIP')

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

build() {
  cd "$srcdir"
}

package() {
  cd "$srcdir/coccigrep"

  python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=0

}