summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 95ceddbca421fd9915d4902f2d1954a373c0463b (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
#Maintainer: aksr <aksr at t-com dot me>
pkgname=smatch
pkgver=1.60
pkgrel=1
pkgdesc="A static analysis tool for C."
arch=('i686' 'x86_64')
url="http://smatch.sourceforge.net/"
license=('custom: OSL')
groups=()
depends=()
makedepends=('git' 'llvm')
provides=('smatch')
conflicts=('smatch')
# replaces=()
# backup=()
# options=()
# install=
source=("$pkgname::git+git://repo.or.cz/smatch.git" LICENSE)
# noextract=()
md5sums=('SKIP'
         '6aab00ce8d50d27993f0e2a32bbb0242')

build() {
  cd "$srcdir/$pkgname"
  git reset --hard $pkgver
  make PREFIX="/usr"
}

check() {
  cd "$srcdir/$pkgname"
  make -k check PREFIX="/usr"
}

package() {
  cd "$srcdir/$pkgname"
  make PREFIX="$pkgdir/usr" install
  install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
}