diff --git a/srcpkgs/libgit2/template b/srcpkgs/libgit2/template index e60b72606df..991ec5c7d92 100644 --- a/srcpkgs/libgit2/template +++ b/srcpkgs/libgit2/template @@ -2,34 +2,24 @@ pkgname=libgit2 version=0.18.0 revision=1 +build_style=cmake +hostmakedepends="cmake python" +makedepends="zlib-devel openssl-devel" short_desc="The Git linkable library" maintainer="Juan RP " homepage="http://libgit2.github.com/" license="GPL-2 with Linking Exception" -long_desc=" - libgit2 is a portable, pure C implementation of the Git core methods provided - as a re-entrant linkable library with a solid API, allowing you to write - native speed custom Git applications in any language with bindings." - -build_style=cmake -hostmakedepends="cmake python" -makedepends="zlib-devel openssl-devel" do_fetch() { git clone -b v${version} git://github.com/libgit2/libgit2.git ${pkgname}-${version} } libgit2-devel_package() { - depends="openssl-devel zlib-devel libgit2>=$version" + depends="openssl-devel zlib-devel ${sourcepkg}>=${version}_${revision}" short_desc+=" - development files" pkg_install() { vmove usr/include vmove usr/lib/pkgconfig - } -} - -libgit2_package() { - pkg_install() { - vmove all + vmove "usr/lib/*.so" } }