wok-next annotate libgit2/receipt @ rev 20075
tiny edit
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Wed Oct 25 08:30:39 2017 +0200 (2017-10-25) |
parents | |
children | e6615350078d |
rev | line source |
---|---|
al@19834 | 1 # SliTaz package receipt v2. |
al@19834 | 2 |
al@19834 | 3 PACKAGE="libgit2" |
al@19834 | 4 VERSION="0.26.0" |
al@19834 | 5 CATEGORY="libs" |
al@19834 | 6 SHORT_DESC="A linkable library for Git" |
al@19834 | 7 MAINTAINER="al.bobylev@gmail.com" |
al@19834 | 8 LICENSE="GPL2" |
al@19834 | 9 WEB_SITE="https://libgit2.github.com/" |
al@19834 | 10 |
al@19834 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@19834 | 12 WGET_URL="https://github.com/libgit2/libgit2/archive/v$VERSION.tar.gz" |
al@19834 | 13 |
al@19834 | 14 BUILD_DEPENDS="cmake curl-dev python" |
al@19834 | 15 SPLIT="libgit2-dev" |
al@19834 | 16 |
al@19834 | 17 # Rules to configure and make the package. |
al@19834 | 18 compile_rules() |
al@19834 | 19 { |
al@19834 | 20 cmake \ |
al@19834 | 21 -DCMAKE_BUILD_TYPE=Release \ |
al@19834 | 22 -DCMAKE_INSTALL_PREFIX=/usr \ |
al@19834 | 23 -DTHREADSAFE=ON && |
al@19834 | 24 make && make install |
al@19834 | 25 } |
al@19834 | 26 |
al@19834 | 27 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@19834 | 28 genpkg_rules() |
al@19834 | 29 { |
al@19834 | 30 case $PACKAGE in |
al@19834 | 31 libgit2) |
al@19834 | 32 copy @std |
al@19834 | 33 DEPENDS="libcrypto libcurl libssh2 libssl zlib" |
al@19834 | 34 ;; |
al@19834 | 35 *-dev) |
al@19834 | 36 copy @dev |
al@19834 | 37 DEPENDS="libgit2 curl-dev libssh2-dev openssl-dev zlib-dev" |
al@19834 | 38 ;; |
al@19834 | 39 esac |
al@19834 | 40 } |