mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 23:57:13 +08:00
34 lines
743 B
Bash
34 lines
743 B
Bash
#
|
|
# Contributor: Daniel Micay <danielmicay@gmail.com>
|
|
# Contributor: Hilton Medeiros <medeiros.hilton@gmail.com>
|
|
# Contributor: Dave Reisner <d@falconindy.com>
|
|
|
|
pkgname=libgit2
|
|
pkgver=0.22.2
|
|
pkgrel=1
|
|
pkgdesc='A linkable library for Git'
|
|
arch=('x86_64')
|
|
url='https://libgit2.github.com/'
|
|
depends=(zlib openssl libssh2)
|
|
makedepends=(cmake python)
|
|
license=('GPL2')
|
|
source=("https://github.com/libgit2/libgit2/archive/v${pkgver}.tar.gz")
|
|
md5sums=('7b21448c471dc76a3ca4801b61ac856a')
|
|
|
|
build() {
|
|
cd $pkgname-$pkgver
|
|
export LANG=en_US.UTF-8
|
|
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DTHREADSAFE=ON
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd $pkgname-$pkgver
|
|
make test
|
|
}
|
|
|
|
package() {
|
|
cd $pkgname-$pkgver
|
|
make DESTDIR="$pkgdir" install
|
|
}
|