wok annotate libssh/receipt @ rev 24748
cairo-gl: disabled trace
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Mar 16 15:28:37 2022 +0000 (2022-03-16) |
parents | 35292b022843 |
children | 5fbb3aad734c |
rev | line source |
---|---|
slaxemulator@8145 | 1 # SliTaz package receipt. |
slaxemulator@8145 | 2 |
slaxemulator@8145 | 3 PACKAGE="libssh" |
pascal@23835 | 4 VERSION="0.9.4" |
slaxemulator@8145 | 5 CATEGORY="network" |
Hans-G?nter@23103 | 6 TAGS="ssh" |
Hans-G?nter@21307 | 7 SHORT_DESC="Library for accessing ssh client services through C libraries." |
slaxemulator@8145 | 8 MAINTAINER="slaxemulator@gmail.com" |
pascal@14996 | 9 LICENSE="LGPL2.1" |
Hans-G?nter@21307 | 10 WEB_SITE="https://www.libssh.org/" |
Hans-G?nter@21307 | 11 |
pascal@18051 | 12 TARBALL="$PACKAGE-$VERSION.tar.xz" |
Hans-G?nter@21307 | 13 WGET_URL="${WEB_SITE}files/${VERSION%.*}/$TARBALL" |
slaxemulator@8145 | 14 |
pascal@14718 | 15 DEPENDS="libssl" |
Hans-G?nter@21307 | 16 BUILD_DEPENDS="cmake openssl-dev" |
pascal@14718 | 17 |
pascal@24447 | 18 # What is the latest version available today? |
pascal@24447 | 19 current_version() |
pascal@24447 | 20 { |
pascal@24447 | 21 wget -O - https://git.libssh.org/projects/libssh.git/ 2>/dev/null | \ |
pascal@24447 | 22 sed "/latest/d;/$PACKAGE-[0-9]/!d;/zip/!d;s|.*$PACKAGE-\\(.*\\).zip.*|\\1|" | sort -Vr | sed q |
pascal@24447 | 23 } |
pascal@24447 | 24 |
slaxemulator@8145 | 25 # Rules to configure and make the package. |
slaxemulator@8145 | 26 compile_rules() |
slaxemulator@8145 | 27 { |
slaxemulator@8145 | 28 mkdir build |
slaxemulator@8145 | 29 cd build |
Hans-G?nter@21307 | 30 cmake ../ \ |
Hans-G?nter@21307 | 31 -DCMAKE_INSTALL_PREFIX=/usr \ |
Hans-G?nter@21307 | 32 -DCMAKE_BUILD_TYPE=Release && |
Hans-G?nter@21307 | 33 make -j 1 && |
slaxemulator@12387 | 34 make DESTDIR=$DESTDIR install |
slaxemulator@8145 | 35 } |
slaxemulator@8145 | 36 |
slaxemulator@8145 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@8145 | 38 genpkg_rules() |
slaxemulator@8145 | 39 { |
slaxemulator@8145 | 40 mkdir -p $fs/usr/lib |
Hans-G?nter@23103 | 41 cp -a $install/usr/lib/*.so* $fs/usr/lib |
slaxemulator@8145 | 42 } |