2021-09-19 23:07:22 +02:00
|
|
|
# Description: A linkable library for Git
|
2021-09-20 14:31:57 +02:00
|
|
|
# URL: https://libgit2.org/
|
2021-09-19 23:07:22 +02:00
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
2022-01-03 14:34:03 +01:00
|
|
|
# Depends on: http-parser
|
2021-09-19 23:07:22 +02:00
|
|
|
|
|
|
|
name=libgit2
|
2023-07-19 19:56:10 +02:00
|
|
|
version=1.7.0
|
2021-09-19 23:07:22 +02:00
|
|
|
release=1
|
2023-02-28 17:18:28 +01:00
|
|
|
source=(https://github.com/libgit2/libgit2/archive/v$version/$name-$version.tar.gz)
|
2021-09-19 23:07:22 +02:00
|
|
|
|
|
|
|
build() {
|
2022-02-14 09:34:36 +01:00
|
|
|
sed -i -e 's:HTTP_Parser:HTTPParser:' \
|
|
|
|
$name-$version/cmake/SelectHTTPParser.cmake
|
|
|
|
|
2022-01-03 14:34:03 +01:00
|
|
|
cmake -S $name-$version -B build -G Ninja \
|
2021-09-19 23:07:22 +02:00
|
|
|
-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
|
|
|
|
}
|