aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
Diffstat (limited to 'main')
-rw-r--r--main/libgit2/APKBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/main/libgit2/APKBUILD b/main/libgit2/APKBUILD
new file mode 100644
index 0000000000..aa153f6db3
--- /dev/null
+++ b/main/libgit2/APKBUILD
@@ -0,0 +1,39 @@
+# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
+# Contributor: Pierre-Gilas MILLON <pgmillon@gmail.com>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libgit2
+pkgver=0.24.1
+pkgrel=0
+pkgdesc="A linkable library for Git"
+url="https://libgit2.github.com/"
+arch="all"
+license="GPLv2"
+depends=""
+depends_dev="curl-dev libssh2-dev"
+makedepends="$depends_dev python cmake zlib-dev openssl-dev"
+install=""
+subpackages="$pkgname-dev $pkgname-libs"
+source="$pkgname-$pkgver.tar.gz::https://github.com/${pkgname}/${pkgname}/archive/v${pkgver}.tar.gz"
+builddir="$srcdir/$pkgname-$pkgver"
+
+build() {
+ cd "$builddir"
+ cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DBUILD_SHARED_LIBS=True \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_CXX_FLAGS="$CXXFLAGS" \
+ -DCMAKE_C_FLAGS="$CFLAGS" \
+ || return 1
+ make || return 1
+}
+
+package() {
+ make DESTDIR="$pkgdir" \
+ -C "$builddir" install || return 1
+}
+
+md5sums="3674ca2d40388b1175e25b6f5a3a82ad libgit2-0.24.1.tar.gz"
+sha256sums="60198cbb34066b9b5c1613d15c0479f6cd25f4aef42f7ec515cd1cc13a77fede libgit2-0.24.1.tar.gz"
+sha512sums="7ad06cef694a293eb90569b042270425f1d012c1c9de8db595dd841942072110bc5342f0d9782479abbba355f5db170b9dad778e79dd23857003e9668cdc1e13 libgit2-0.24.1.tar.gz"