jobextra/libgit2/PKGBUILD

57 lines
1.7 KiB
Bash
Raw Normal View History

#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=libgit2
2022-07-14 11:54:22 +02:00
pkgver=1.4.4
pkgrel=01
epoch=1
pkgdesc="A linkable library for Git"
arch=(x86_64)
url="https://github.com/libgit2/libgit2"
depends=(glibc http-parser openssl pcre zlib)
makedepends=(cmake libssh2 python)
provides=(libgit2.so)
#options=(debug) ## uncomment this to have the debug pkg produced
source=($pkgname-$pkgver.tar.gz::https://github.com/$pkgname/$pkgname/archive/v$pkgver.tar.gz
$pkgname-1.2.0-remove_http-parse_incompatible_tests.patch)
prepare() {
# remove tests that are only compatible with the (modified) vendored version
# of http-parser, but not with upstream http-parser
patch -d $pkgname-$pkgver -Np1 -i ../$pkgname-1.2.0-remove_http-parse_incompatible_tests.patch
}
build() {
cmake -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=None \
-DUSE_HTTP_PARSER=system \
-DUSE_SSH=ON \
-DTHREADSAFE=ON \
-Wno-dev \
-B build \
-S $pkgname-$pkgver
make VERBOSE=1 -C build
}
check() {
make VERBOSE=1 test -C build
}
package() {
depends+=(libssh2.so)
make VERBOSE=1 DESTDIR="$pkgdir" install -C build
install -vDm 644 $pkgname-$pkgver/{AUTHORS,README.md} -t "$pkgdir/usr/share/doc/$pkgname"
}
#---- license gpg-key sha256sums ----
2022-07-14 11:54:22 +02:00
license=(GPL2)
2022-07-14 11:54:22 +02:00
sha256sums=(e9923e9916a32f54c661d55d79c28fa304cb23617639e68bff9f94d3e18f2d4b # libgit2-1.4.4.tar.gz
e95000dd7e2a3c56015114d0b67cf1a6d2ff382d2e2a2567dbb4731300a1deb1) # libgit2-1.2.0-remove_http-parse_incompatible_tests.patch