wok-current view gnupg/receipt @ rev 25728
Merge wok for both arch and few updates
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Thu Dec 05 08:39:45 2024 +0000 (5 weeks ago) |
parents | 3ad63c8fc2f9 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="gnupg"
4 VERSION="2.2.36"
5 CATEGORY="security"
6 SHORT_DESC="Free implementation of the OpenPGP."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="https://www.gnupg.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="${WEB_SITE}ftp/gcrypt/gnupg/$TARBALL"
14 DEPENDS="bzlib gnutls libassuan libcurl libgcrypt libksba libusb
15 libusb-compat ncurses npth openldap pinentry pth readline sqlite"
16 BUILD_DEPENDS="curl-dev gnutls-dev libassuan-dev libgcrypt-dev libgnutls
17 libgpg-error-dev libksba-dev libusb-compat-dev libusb-dev
18 npth-dev openldap-dev pth-dev readline-dev sqlite-dev zlib-dev"
20 HOST_ARCH="i486 x86_64"
22 # What is the latest version available today?
23 current_version()
24 {
25 wget -O - ${WGET_URL%/*} 2>/dev/null | \
26 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
27 }
29 # Rules to configure and make the package.
30 compile_rules()
31 {
32 # Integrity check: https://www.gnupg.org/download/integrity_check.html
33 echo "01e2f80d6579a3b3dc25547ad13632bf87dbc757 $SRC/$TARBALL" | sha1sum -c ||
34 exit 1
36 export LDFLAGS="-lrt"
38 ./configure $CONFIGURE_ARGS &&
39 make &&
40 make install
42 # 2.2.19 already gzipped
43 # find $install/usr/share/man -type f -exec gzip -9 \{\} \;
44 }
46 # Rules to gen a SliTaz package suitable for Tazpkg.
47 genpkg_rules()
48 {
49 cp -a $install/* $fs
50 rm -r $fs/usr/share/doc $fs/usr/share/info \
51 $fs/usr/share/locale
52 }