blob: 6eda9581a9883de47982bc1f45205d1d8c20e544 (
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
34
35
36
37
38
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.23.4
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="b7db3ab71dfa19fe1dc7fef76d6af216 libgit2-0.23.4.tar.gz"
sha256sums="c7f5e2d7381dbc4d7e878013d14f9993ae8a41bd23f032718e39ffba57894029 libgit2-0.23.4.tar.gz"
sha512sums="f2f6244dfee4dab2dc5ef9607808404467a1f6baa684aa4e24b7116e7e7f63f396eef3282c1bcffbef47f19824731c2887deadbe3b2dad8a075b0639e5965d9e libgit2-0.23.4.tar.gz"
|