2021-09-19 23:07:22 +02:00
|
|
|
# Description: A linkable library for Git
|
2021-09-20 22:31:57 +10:00
|
|
|
# URL: https://libgit2.org/
|
2021-09-19 23:07:22 +02:00
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
|
|
# Depends on: cmake http-parser
|
|
|
|
|
|
|
|
name=libgit2
|
2022-07-17 15:45:37 +02:00
|
|
|
version=1.5.0
|
2021-09-19 23:07:22 +02:00
|
|
|
release=1
|
2021-09-20 22:31:57 +10:00
|
|
|
source=(https://github.com/$name/$name/archive/v$version/$name-$version.tar.gz)
|
2021-09-19 23:07:22 +02:00
|
|
|
|
|
|
|
build() {
|
|
|
|
prt-get isinst ninja && PKGMK_LIBGIT2+=' -G Ninja'
|
|
|
|
|
2022-02-14 09:34:36 +01:00
|
|
|
sed -i -e 's:HTTP_Parser:HTTPParser:' \
|
|
|
|
$name-$version/cmake/SelectHTTPParser.cmake
|
|
|
|
|
2021-09-19 23:07:22 +02:00
|
|
|
cmake -S $name-$version -B build $PKGMK_LIBGIT2 \
|
|
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-D CMAKE_INSTALL_LIBDIR=lib \
|
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
|
|
|
-D USE_HTTP_PARSER=system \
|
|
|
|
-D THREADSAFE=ON \
|
|
|
|
-Wno-dev
|
|
|
|
|
|
|
|
cmake --build build
|
|
|
|
DESTDIR=$PKG cmake --install build
|
|
|
|
}
|