[arch-commits] Commit in libgit2/trunk (PKGBUILD)
David Runge
dvzrv at archlinux.org
Thu Aug 8 14:08:42 UTC 2019
Date: Thursday, August 8, 2019 @ 14:08:42
Author: dvzrv
Revision: 359322
upgpkg: libgit2 1:0.28.2-2
Adding docs. Removing curl (unrequired) and openssl/zlib (libssh2 requires them) from depends. Adding libgit2.so to provides. Minor cleanup.
Modified:
libgit2/trunk/PKGBUILD
----------+
PKGBUILD | 29 +++++++++++++++++------------
1 file changed, 17 insertions(+), 12 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-08-08 10:00:55 UTC (rev 359321)
+++ PKGBUILD 2019-08-08 14:08:42 UTC (rev 359322)
@@ -5,13 +5,14 @@
pkgname=libgit2
pkgver=0.28.2
-pkgrel=1
+pkgrel=2
epoch=1
pkgdesc='A linkable library for Git'
arch=('x86_64')
url="https://libgit2.github.com/"
-depends=('curl' 'http-parser' 'libssh2' 'openssl' 'zlib')
+depends=('http-parser' 'libssh2')
makedepends=('cmake' 'python')
+provides=('libgit2.so')
license=('GPL2')
source=("$pkgname-$pkgver.tar.gz::https://github.com/libgit2/libgit2/archive/v${pkgver}.tar.gz"
"${pkgname}-0.28.2-online-tests.patch::https://github.com/libgit2/libgit2/pull/5094.patch")
@@ -26,20 +27,24 @@
}
build() {
- cd "$pkgname-$pkgver/build"
- cmake -DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_BUILD_TYPE=Release \
- -DTHREADSAFE=ON \
- ..
- make VERBOSE=1
+ cd "$pkgname-$pkgver"
+ (
+ cd build
+ cmake -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release \
+ ..
+ )
+ make -C build VERBOSE=1
}
check() {
- cd "$pkgname-$pkgver/build"
- make test VERBOSE=1
+ cd "$pkgname-$pkgver"
+ make -C build test VERBOSE=1
}
package() {
- cd "$pkgname-$pkgver/build"
- make DESTDIR="$pkgdir" install
+ cd "$pkgname-$pkgver"
+ make -C build DESTDIR="$pkgdir" install
+ install -vDm 644 {AUTHORS,README.md} \
+ -t "${pkgdir}/usr/share/doc/${pkgname}"
}
More information about the arch-commits
mailing list