wok-current view pinentry-gtk/receipt @ rev 25586

Fix linux build with gcc > 6 again
author Stanislas Leduc <shann@slitaz.org>
date Mon May 29 12:23:26 2023 +0000 (19 months ago)
parents 6655176c9e79
children 3ad63c8fc2f9
line source
1 # SliTaz package receipt.
3 PACKAGE="pinentry-gtk"
4 VERSION="1.1.0"
5 CATEGORY="security"
6 SHORT_DESC="Allow GnuPG to read passphrases and PIN numbers in a secure manner (GTK+ GUI)."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://www.gnupg.org/"
10 TARBALL="pinentry-$VERSION.tar.bz2"
11 WGET_URL="https://www.gnupg.org/ftp/gcrypt/pinentry/$TARBALL"
12 HOST_ARCH="i486 arm"
14 DEPENDS="gtk+ libassuan libcap libsecret libtinfo ncursesw"
15 BUILD_DEPENDS="libgpg-error-dev libassuan-dev libsecret-dev ncursesw-dev \
16 libcap-dev gtk+-dev libgcrypt-dev"
17 SIBLINGS="pinentry"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
23 sed "/latest/d;/pinentry-[0-9]/!d;/tar/!d;s|.*pinentry-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
28 compile_rules()
29 {
30 # Integrity check: https://www.gnupg.org/download/integrity_check.html
31 echo "693bdf9f48dfb3e040d92f50b1bb464e268b9fb0 $SRC/$TARBALL" | sha1sum -c || exit 1
33 export LDFLAGS="$LDFLAGS -ltinfo"
34 ./configure \
35 --enable-pinentry-gtk2 \
36 --enable-fallback-curses \
37 --disable-pinentry-curses \
38 --build=i486-slitaz-linux-gnu \
39 $CONFIGURE_ARGS &&
40 make &&
41 make install
42 }
44 genpkg_rules()
45 {
46 mkdir -p $fs/usr/
47 cp -a $install/usr/bin $fs/usr
48 }