wok-6.x annotate libsodium/receipt @ rev 25445
itaka: fix wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Sep 06 07:38:52 2022 +0000 (2022-09-06) |
parents | ede1d184d5c5 |
children |
rev | line source |
---|---|
pascal@21877 | 1 # SliTaz package receipt. |
pascal@21877 | 2 |
pascal@21877 | 3 PACKAGE="libsodium" |
pascal@21877 | 4 VERSION="1.0.18" |
pascal@21877 | 5 CATEGORY="security" |
pascal@21877 | 6 SHORT_DESC="Network communication, cryptography and signaturing library" |
pascal@21877 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@21877 | 8 LICENSE="ISC" |
pascal@21877 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@25438 | 10 WEB_SITE="https://doc.libsodium.org/" |
pascal@21877 | 11 WGET_URL="https://download.libsodium.org/libsodium/releases/$TARBALL" |
pascal@21877 | 12 |
pascal@24447 | 13 # What is the latest version available today? |
pascal@24447 | 14 current_version() |
pascal@24447 | 15 { |
pascal@24447 | 16 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24447 | 17 sed "/latest/d;/$PACKAGE-[0-9]/!d;/[0-9].tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q |
pascal@24447 | 18 } |
pascal@24447 | 19 |
pascal@21877 | 20 # Rules to configure and make the package. |
pascal@21877 | 21 compile_rules() |
pascal@21877 | 22 { |
pascal@21877 | 23 ./configure --prefix=/usr \ |
pascal@21877 | 24 $CONFIGURE_ARGS && |
pascal@21877 | 25 make && |
pascal@21877 | 26 make DESTDIR=$DESTDIR install |
pascal@21877 | 27 } |
pascal@21877 | 28 |
pascal@21877 | 29 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@21877 | 30 genpkg_rules() |
pascal@21877 | 31 { |
pascal@21877 | 32 mkdir -p $fs/usr/lib |
pascal@21877 | 33 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pascal@21877 | 34 } |