blob: 50c95c804189b5860df7ae2869d2100f4c8ac945 (
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
|
# Contributor: Pierre-Gilas MILLON <pgmillon@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libgit2
pkgver=0.23.2
pkgrel=1
pkgdesc=" The Library http://libgit2.github.com"
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"
source="
saveas-https://github.com/$pkgname/$pkgname/archive/v${pkgver}.tar.gz/$pkgname-${pkgver}.tar.gz
10-qsort_r.patch
"
_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
cmake -DCMAKE_INSTALL_PREFIX=/usr "$_srcdir" || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
}
md5sums="ade3b85d759866c03b6188e397b652fa libgit2-0.23.2.tar.gz
280b532b905ca3360f262df2d847197c 10-qsort_r.patch"
sha256sums="20c0a6ee92c0e19207dac6ddc336b4ae4a1c4ddf91be0891e4b6e6ccba16df0b libgit2-0.23.2.tar.gz
2967ecb60cd4eb72bfd3bf9f096dab84e11587a2a9b6a49133a09acf0d68b496 10-qsort_r.patch"
sha512sums="aa11be93a135eeddd07d2f2a4cba019d42e33f185141caac1d0f89083652aa612f1381e3011396c6078b46f8bbeea894eb5fc25fcebbe13cb14dd9dfd8f40240 libgit2-0.23.2.tar.gz
23aba3338c4b9f96b34d23b7207181481edad5f7342540aa70f3667ba1771246081b035d36e5aab443cad25dec3e588ca22bdd4f6b39b8e3886b530ebd92ff12 10-qsort_r.patch"
|