mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-10 10:54:36 +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.21.1
|
||
|
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=('cbf3422d54dd6f55f09855a6eb749f41')
|
||
|
|
||
|
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
|
||
|
}
|