wok view pinentry/receipt @ rev 24713
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Mar 14 18:23:09 2022 +0000 (2022-03-14) |
parents | 6655176c9e79 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="pinentry"
4 VERSION="1.1.0"
5 CATEGORY="security"
6 SHORT_DESC="Collection of dialog programs that allow GnuPG to read passphrases and PIN numbers in a secure manner."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://www.gnupg.org/"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WGET_URL="https://www.gnupg.org/ftp/gcrypt/pinentry/$TARBALL"
13 DEPENDS="libassuan libcap libgio libsecret ncursesw"
14 BUILD_DEPENDS="libgpg-error-dev libassuan-dev libsecret-dev ncursesw-dev \
15 libcap-dev libgcrypt-dev"
16 SIBLINGS="pinentry-gtk"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
22 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
27 compile_rules()
28 {
29 # Integrity check: https://www.gnupg.org/download/integrity_check.html
30 echo "693bdf9f48dfb3e040d92f50b1bb464e268b9fb0 $SRC/$TARBALL" | sha1sum -c || exit 1
32 ./configure --enable-pinentry-curses --build=i486-slitaz-linux-gnu &&
33 make && make install
34 }
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr
39 cp -a $install/usr/bin $fs/usr
40 }