summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a664670b665cbffe0e02d0893c998d9f9f883662 (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
# Maintainer: Luis Martinez <luis dot martinez at disroot dot org>
# Contributor: Matthias Lisin <ml@visu.li>

pkgname=libcvtapi-git
pkgver=r136.b30f7ad
pkgrel=1
pkgdesc='Official implementation of the VirusTotal API in C programming language'
arch=('x86_64')
url='https://github.com/VirusTotal/c-vtapi'
license=('Apache')
depends=('libcurl.so' 'jansson')
makedepends=('git')
provides=('libcvtapi.so')
conflicts=('libcvtapi')
source=("$pkgname::git+$url")
sha512sums=('SKIP')

pkgver() {
	cd "$pkgname"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}


build() {
	cd "$pkgname"
	autoreconf -fi
	./configure --disable-doxygen-doc --prefix=/usr
	make
}

package() {
	cd "$pkgname"
	make DESTDIR="$pkgdir/" install
}