summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f65c11a766e55ed3066e06c0352b064ad2b18d8e (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Maintainer: Omar Sandoval <osandov at osandov dot com>
# Contributor: Roger Zanoni <rogerzanoni@gmail.com>
# Contributor: Sylvain Henry <hsyl20@gmail.com>
# Contributor: Marti Raudsepp <marti@juffo.org>
# Contributor: Dan McGee <dpmcgee@gmail.com>
# Contributor: LeCrayonVert <sunrider@laposte.net>
# Contributor: Lukas Fleischer <archlinux@cryptocrack.de>
# Contributor: Vladimir Kirillov <proger@wilab.org.ua>

pkgname=coccinelle
pkgver=1.0.6
pkgrel=2
pkgdesc="Provides spatch program used to apply semantic patches"
arch=('i686' 'x86_64')
url="http://coccinelle.lip6.fr/"
license=('GPL2')
makedepends=('camlp4' 'ocaml' 'ocaml-findlib')
depends=('pcre' 'python')
optdepends=('ocaml: OCaml scripting feature'
            'ocaml-findlib: OCaml scripting feature')
options=('!strip')
source=(http://coccinelle.lip6.fr/distrib/${pkgname}-${pkgver}.tgz
        0001-Fixed-compatibility-with-3.12.patch
        0002-Added-Support-for-with-python-and-python.patch)
sha256sums=('8452ed265c209dae99cbb33b67bc7912e72f8bca1e24f33f1a88ba3d7985e909'
            'ddaa7263813276487ddff956bd660dcdfa25642a9a7919c431aa290b8f01b6f0'
            '7e6100c9ea3dd79868835e324e6072672dabc9a2b9ee0ba93180465f35a99d07')

prepare() {
  cd "$pkgname-$pkgver"
  patch -p1 <"$srcdir/0001-Fixed-compatibility-with-3.12.patch"
  patch -p1 <"$srcdir/0002-Added-Support-for-with-python-and-python.patch"
}

build() {
  cd "$pkgname-$pkgver"

  ./autogen
  ./configure --prefix=/usr
  make
}

package() {
  cd "$pkgname-$pkgver"

  make DESTDIR="$pkgdir/" MANDIR="/usr/share/man" install
}

# vim:set ts=2 sw=2 et: