wok annotate gnupg/receipt @ rev 25794
created recipe for exo-lang
author | Hans-G?nter Theisgen |
---|---|
date | Wed Oct 23 16:19:52 2024 +0100 (4 weeks ago) |
parents | 5f8ba8c434fa |
children |
rev | line source |
---|---|
pankso@29 | 1 # SliTaz package receipt. |
pankso@29 | 2 |
pankso@29 | 3 PACKAGE="gnupg" |
Hans-G?nter@22863 | 4 VERSION="2.2.19" |
pankso@209 | 5 CATEGORY="security" |
pankso@29 | 6 SHORT_DESC="Free implementation of the OpenPGP." |
pankso@29 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@14999 | 8 LICENSE="GPL3" |
al@19226 | 9 WEB_SITE="https://www.gnupg.org/" |
Hans-G?nter@22863 | 10 |
pankso@29 | 11 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
Hans-G?nter@22863 | 12 WGET_URL="${WEB_SITE}ftp/gcrypt/gnupg/$TARBALL" |
pankso@29 | 13 |
Hans-G?nter@22863 | 14 DEPENDS="bzlib gnutls libassuan libcurl libgcrypt libksba libusb |
Hans-G?nter@22863 | 15 libusb-compat ncurses npth openldap pinentry pth readline sqlite" |
Hans-G?nter@22863 | 16 BUILD_DEPENDS="curl-dev gnutls-dev libassuan-dev libgcrypt-dev libgnutls |
Hans-G?nter@22863 | 17 libgpg-error-dev libksba-dev libusb-compat-dev libusb-dev |
Hans-G?nter@22863 | 18 npth-dev openldap-dev pth-dev readline-dev sqlite-dev zlib-dev" |
erjo@9941 | 19 |
pascal@24427 | 20 # What is the latest version available today? |
pascal@24427 | 21 current_version() |
pascal@24427 | 22 { |
pascal@24427 | 23 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24427 | 24 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24427 | 25 } |
pascal@24427 | 26 |
pankso@29 | 27 # Rules to configure and make the package. |
pankso@29 | 28 compile_rules() |
pankso@29 | 29 { |
al@19226 | 30 # Integrity check: https://www.gnupg.org/download/integrity_check.html |
Hans-G?nter@22863 | 31 echo "e24a1208ffe69d7436b2f27e99542a85f34d0ac0 $SRC/$TARBALL" | sha1sum -c || |
Hans-G?nter@22863 | 32 exit 1 |
al@19226 | 33 |
Hans-G?nter@22863 | 34 export LDFLAGS="-lrt" |
al@19226 | 35 |
Hans-G?nter@22863 | 36 ./configure $CONFIGURE_ARGS && |
Hans-G?nter@22863 | 37 make && |
Hans-G?nter@22863 | 38 make install |
Hans-G?nter@22863 | 39 |
Hans-G?nter@22863 | 40 # 2.2.19 already gzipped |
Hans-G?nter@22863 | 41 # find $install/usr/share/man -type f -exec gzip -9 \{\} \; |
pankso@29 | 42 } |
pankso@29 | 43 |
pankso@29 | 44 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@29 | 45 genpkg_rules() |
pankso@29 | 46 { |
Hans-G?nter@22863 | 47 cp -a $install/* $fs |
Hans-G?nter@22863 | 48 rm -r $fs/usr/share/doc $fs/usr/share/info \ |
Hans-G?nter@22863 | 49 $fs/usr/share/locale |
pankso@29 | 50 } |