summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7f61aa9f1e391b5de81fdd6288e0446d6490412e (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
# Maintainer: Matthias Lisin <ml@visu.li>
pkgname=libcvtapi-git
pkgver=r135.dae474e
pkgrel=1
pkgdesc='Official implementation of the VirusTotal API in C programming language'
arch=(i686 x86_64)
url=https://github.com/VirusTotal/c-vtapi
license=(Apache)
groups=()
depends=(curl jansson)
makedepends=(git) # 'bzr', 'git', 'mercurial' or 'subversion'
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
}