void-packages/srcpkgs/libgit2/template
2020-05-04 16:18:57 +02:00

27 lines
767 B
Bash

# Template file for 'libgit2'
pkgname=libgit2
version=1.0.0
revision=1
build_style=cmake
hostmakedepends="python3 git pkg-config"
makedepends="zlib-devel libressl-devel http-parser-devel libssh2-devel"
short_desc="Git linkable library"
maintainer="q66 <daniel@octaforge.org>"
license="custom:GPL-2.0-or-later WITH GCC-exception-2.0"
homepage="https://libgit2.org"
distfiles="https://github.com/libgit2/libgit2/archive/v${version}.tar.gz"
checksum=6a1fa16a7f6335ce8b2630fbdbb5e57c4027929ebc56fcd1ac55edb141b409b4
post_install() {
vlicense COPYING
}
libgit2-devel_package() {
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}