diff --git a/common/shlibs b/common/shlibs index 927f7bc0e0e..61ed15ecf41 100644 --- a/common/shlibs +++ b/common/shlibs @@ -1240,3 +1240,4 @@ libesmtp.so.6 libesmtp-1.0.6_4 libcaca.so.0 libcaca-0.99.beta18_3 libunwind.so.8 libunwind-1.1_1 libmicrohttpd.so.10 libmicrohttpd-0.9.26_1 +libgit2.so.0 libgit2-0.18.0_1 diff --git a/srcpkgs/libgit2-devel b/srcpkgs/libgit2-devel new file mode 120000 index 00000000000..fa92a04554a --- /dev/null +++ b/srcpkgs/libgit2-devel @@ -0,0 +1 @@ +libgit2 \ No newline at end of file diff --git a/srcpkgs/libgit2/template b/srcpkgs/libgit2/template new file mode 100644 index 00000000000..73cc1992fc4 --- /dev/null +++ b/srcpkgs/libgit2/template @@ -0,0 +1,37 @@ +# Template file for 'libgit2' +pkgname=libgit2 +version=0.18.0 +revision=1 +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." + +nofetch=yes +noextract=yes +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" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove usr/lib/pkgconfig + } +} + +libgit2_package() { + pkg_install() { + vmove all + } +}