blob: 883c92641ca7953831171471e3a93a53b1292189 (
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Contributor: Sergei Lukin <sergej.lukin@gmail.com>
# 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.25.1
pkgrel=4
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 python2 cmake zlib-dev libressl-dev"
subpackages="$pkgname-dev"
provides="$pkgname-libs" # for backward compatibility with v3.4
replaces="$pkgname-libs" # for backward compatibility with v3.4
source="$pkgname-$pkgver.tar.gz::https://github.com/$pkgname/$pkgname/archive/v$pkgver.tar.gz
libressl.patch
pkgconfig-do-not-quote-Libs.patch
build-both-static-dynamic.patch
"
builddir="$srcdir/$pkgname-$pkgver"
# secfixes:
# 0.25.1-r0:
# - CVE-2016-10128
# - CVE-2016-10129
# - CVE-2016-10130
# 0.24.3-r0:
# - CVE-2016-8568
# - CVE-2016-8569
build() {
cd "$builddir"
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
-DCMAKE_C_FLAGS="$CFLAGS" \
|| return 1
make || return 1
}
package() {
make DESTDIR="$pkgdir" \
-C "$builddir" install || return 1
}
sha512sums="e20c7f4a55d2183522fd851a002a9e861e2f3b550c09aea7fbcd9eae5c39410596e4cd4f852d81256bb0bee6365eab0f9b854b66fd459afe2b7d149f68c1c103 libgit2-0.25.1.tar.gz
3674957d09207b11d268ba9fcb442a081b8efe318d0e8501b7afa0ae2397efc9aff8572b1ffd9f2286c46a06a647fbe943c2cc7e8f97d1a0288e74010846d439 libressl.patch
635fb1f64c4b676044e7800cc8796646f90d7e6447ab77f97b3491f746351e826ffa9c03b6bef7ffabad9c50a5c5e983ea9e53b4972211813f54d81b703b4aed pkgconfig-do-not-quote-Libs.patch
39534d10f38f394446f93df810233464807fca3b0e903ee40067971ecbe1d78102bbe04283435032f757f970e6846ecf279eb727ab137c01e84427bd16913ee6 build-both-static-dynamic.patch"
|