summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bd2414b801a637d5ebb7de730d249e20f3da3b32 (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
# Maintainer: Tony Lambiris <tony@libpcap.net>

pkgname=cvechecker-git
pkgver=4.0.r25.g16ccb70
pkgrel=1
pkgdesc="a local CVE checker tool"
arch=('i686' 'x86_64')
url="https://github.com/sjvermeu/cvechecker"
license=('GPL')
groups=('system')
depends=('libconfig>=1.3' 'sqlite3' 'wget' 'libxslt')
makedepends=('autoconf' 'make' 'gcc')
provides=('cvechecker')
conflicts=('cvechecker')
replaces=()
backup=()
options=()
install=cvechecker.install
noextract=()
source=("${pkgname}::git+https://github.com/sjvermeu/cvechecker.git")
sha256sums=('SKIP')

pkgver() {
    cd "${srcdir}/${pkgname}"

    git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//g;s/^cvechecker.//'
}

build() {
    cd "${srcdir}/${pkgname}"

    autoreconf -ivf
    ./configure \
        --prefix=/usr \
        --sysconfdir=/etc \
        --localstatedir=/var \
        --enable-sqlite3
    make
}

package() {
    cd "${srcdir}/${pkgname}"

    make DESTDIR="${pkgdir}" install
}