mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-09 10:42:12 +01:00
67 lines
1.8 KiB
Plaintext
67 lines
1.8 KiB
Plaintext
# 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.27.4
|
|
pkgrel=0
|
|
pkgdesc="A linkable library for Git"
|
|
url="https://libgit2.org/"
|
|
arch="all"
|
|
license="GPL-2.0-only-WITH-GCC-exception-2.0"
|
|
depends_dev="curl-dev libssh2-dev"
|
|
makedepends="$depends_dev python2 cmake zlib-dev libressl-dev"
|
|
subpackages="$pkgname-dev $pkgname-tests::noarch"
|
|
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
|
|
build-both-static-dynamic.patch
|
|
"
|
|
options="!check" # FIXME some tests fails
|
|
builddir="$srcdir/$pkgname-$pkgver"
|
|
|
|
# secfixes:
|
|
# 0.27.4-r0:
|
|
# - CVE-2018-15501
|
|
# 0.27.3-r0:
|
|
# - CVE-2018-10887
|
|
# - CVE-2018-10888
|
|
# 0.25.1-r0:
|
|
# - CVE-2016-10128
|
|
# - CVE-2016-10129
|
|
# - CVE-2016-10130
|
|
# 0.24.3-r0:
|
|
# - CVE-2016-8568
|
|
# - CVE-2016-8569
|
|
|
|
build() {
|
|
mkdir -p "$builddir"/build
|
|
cd "$builddir"/build
|
|
|
|
cmake .. \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_C_FLAGS="$CFLAGS"
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd "$builddir"/build
|
|
make test
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"/build
|
|
make DESTDIR="$pkgdir" install
|
|
}
|
|
|
|
tests() {
|
|
pkgdesc="$pkgdesc (tests)"
|
|
|
|
mkdir -p "$subpkgdir"/usr/src/$pkgname/
|
|
cp -a "$builddir"/tests "$subpkgdir"/usr/src/$pkgname/
|
|
}
|
|
|
|
sha512sums="d27db86eb1b9f0d4057f8538ba1985ee76c3ca106e57d417fa9bff79d575f91a07ad28693112b58dc1d61d68116a82e6a145f12276158f2806b6c4964d741f61 libgit2-0.27.4.tar.gz
|
|
268e24554282666900a2179a368dc2569cb3bce60ffea187fd53de1bc119a85abc02cddd8be2ab607d44db793c4807acdbb49fc5d1badfc08bf382fa511d7b3e build-both-static-dynamic.patch"
|